1 --- OpenPTC-GGI-0.5.0/source/GGI/Console.h.orig Tue May 4 08:47:41 1999
2 +++ OpenPTC-GGI-0.5.0/source/GGI/Console.h Sat Dec 21 09:44:00 2002
12 --- OpenPTC-GGI-0.5.0/source/GGI/Console.cc.orig Tue May 4 08:51:14 1999
13 +++ OpenPTC-GGI-0.5.0/source/GGI/Console.cc Sat Dec 21 09:45:35 2002
15 void Console::configure( const char file[] )
17 // open configuration file
18 - ifstream f( file, ios::in );
19 + std::ifstream f( file, std::ios::in );
25 // Block until we get a key.
26 giiEventRead( l_ggi_input, &l_ggi_event, ( ggi_event_mask )
27 - emKeyPress | emKeyRepeat );
28 + (emKeyPress | emKeyRepeat) );
30 int code = l_ggi_event.key.sym;
31 bool alt = l_ggi_event.key.modifiers & GII_MOD_ALT;
36 -ggi_mode *Console::translate( const Mode &l_ptc_mode, int pages = 0 )
37 +ggi_mode *Console::translate( const Mode &l_ptc_mode, int pages /* = 0 */)
40 ggi_mode *l_ggi_mode = new ggi_mode;
41 --- OpenPTC-GGI-0.5.0/source/Core/Palette.cc.orig Mon May 3 20:06:57 1999
42 +++ OpenPTC-GGI-0.5.0/source/Core/Palette.cc Sat Dec 21 09:50:18 2002
46 // memcpy(Hermes_PaletteGet(m_handle),data,1024);
47 - Hermes_PaletteSet(m_handle,data);
48 + Hermes_PaletteSet(m_handle,(int32*)data);
52 --- OpenPTC-GGI-0.5.0/demos/tunnel3d/Tunnel3D.cc.orig Thu Apr 1 02:04:41 1999
53 +++ OpenPTC-GGI-0.5.0/demos/tunnel3d/Tunnel3D.cc Sat Dec 21 09:58:50 2002
58 -#include <iostream.h>
66 while(((int)tunneltex)&0xffff!=0)
69 - ifstream texfile("Tunnel3D.raw",ios::binary|ios::in);
70 - texfile.read(pal,768);
71 - texfile.read(tmp,65536);
72 + std::ifstream texfile("Tunnel3D.raw",std::ios::binary|std::ios::in);
73 + texfile.read((char*)pal,768);
74 + texfile.read((char*)tmp,65536);
77 // Generate lookup table for lighting (65 because of possible inaccuracies)
93 --- OpenPTC-GGI-0.5.0/examples/image/Image.cc.orig Sat Mar 20 23:11:27 1999
94 +++ OpenPTC-GGI-0.5.0/examples/image/Image.cc Sat Dec 21 10:03:27 2002
103 void load(Surface &surface,char filename[])
106 - ifstream is(filename,ios::in|ios::binary|ios::nocreate);
107 + std::ifstream is(filename,std::ios::in|std::ios::binary);
109 // check image file stream
110 if (!is) throw Error("could not load image");
111 --- OpenPTC-GGI-0.5.0/examples/info/Info.cc.orig Sat Mar 20 23:12:18 1999
112 +++ OpenPTC-GGI-0.5.0/examples/info/Info.cc Sat Dec 21 10:04:07 2002
129 --- OpenPTC-GGI-0.5.0/examples/modes/Modes.cc.orig Sat Mar 20 23:14:23 1999
130 +++ OpenPTC-GGI-0.5.0/examples/modes/Modes.cc Sat Dec 21 10:05:07 2002
147 --- OpenPTC-GGI-0.5.0/examples/pixel/Pixel.cc.orig Sat Mar 20 23:16:04 1999
148 +++ OpenPTC-GGI-0.5.0/examples/pixel/Pixel.cc Sat Dec 21 10:07:02 2002
164 --- OpenPTC-GGI-0.5.0/examples/save/Save.cc.orig Sat Mar 20 23:17:22 1999
165 +++ OpenPTC-GGI-0.5.0/examples/save/Save.cc Sat Dec 21 10:08:29 2002
170 -#include <fstream.h>
174 void save(Surface &surface,char filename[])
176 // open image file for writing
177 - ofstream os(filename,ios::out|ios::binary);
178 + std::ofstream os(filename,std::ios::out|std::ios::binary);
180 // check image file stream
181 if (!os) throw Error("could not open image file for writing");
186 - os.write(header,18);
187 + os.write((const char*)header,18);
189 // calculate size of image pixels
190 const int size = width * height * 3;
191 --- OpenPTC-GGI-0.5.0/examples/stretch/Stretch.cc.orig Sun Mar 21 00:07:08 1999
192 +++ OpenPTC-GGI-0.5.0/examples/stretch/Stretch.cc Sat Dec 21 10:09:52 2002
197 -#include <fstream.h>
201 void load(Surface &surface,char filename[])
204 - ifstream is(filename,ios::in|ios::binary|ios::nocreate);
205 + std::ifstream is(filename,std::ios::in|std::ios::binary);
207 // check image file stream
208 if (!is) throw Error("could not load image");
209 --- OpenPTC-GGI-0.5.0/demos/fire/Fire.cc.orig Sun Mar 21 00:46:48 1999
210 +++ OpenPTC-GGI-0.5.0/demos/fire/Fire.cc Sat Dec 21 10:10:48 2002
220 --- OpenPTC-GGI-0.5.0/demos/flower/Flower.cc.orig Sun Mar 21 00:47:26 1999
221 +++ OpenPTC-GGI-0.5.0/demos/flower/Flower.cc Sat Dec 21 10:11:24 2002
231 --- OpenPTC-GGI-0.5.0/demos/land/Land.cc.orig Sun Mar 21 01:06:36 1999
232 +++ OpenPTC-GGI-0.5.0/demos/land/Land.cc Sat Dec 21 10:13:06 2002
233 @@ -256,10 +256,11 @@
235 void View(int x0,int y0,int angle, int height, int32 *surface_buffer)
239 // Initialize last-y and last-color arrays
241 - for ( int d=0; d<SCREENWIDTH; d++ )
242 + for ( d=0; d<SCREENWIDTH; d++ )
244 lasty[d]=SCREENHEIGHT;
246 --- OpenPTC-GGI-0.5.0/demos/lights/Lights.cc.orig Sun Mar 21 00:48:15 1999
247 +++ OpenPTC-GGI-0.5.0/demos/lights/Lights.cc Sat Dec 21 10:13:49 2002
257 --- OpenPTC-GGI-0.5.0/demos/mojo/Mojo.cc.orig Sun Mar 21 00:47:37 1999
258 +++ OpenPTC-GGI-0.5.0/demos/mojo/Mojo.cc Sat Dec 21 10:15:57 2002
263 -#include <fstream.h>
272 - ifstream file("Mojo.raw");
273 + std::ifstream file("Mojo.raw");
274 file.read((char*)MaskMap,320*200);
292 --- OpenPTC-GGI-0.5.0/demos/tunnel/Tunnel.cc.orig Sun Mar 21 00:47:18 1999
293 +++ OpenPTC-GGI-0.5.0/demos/tunnel/Tunnel.cc Sat Dec 21 10:16:41 2002
309 --- OpenPTC-GGI-0.5.0/tests/Console.cc.orig Thu Feb 18 16:08:52 1999
310 +++ OpenPTC-GGI-0.5.0/tests/Console.cc Sat Dec 21 10:17:48 2002
326 --- OpenPTC-GGI-0.5.0/tests/Link.cc.orig Thu Feb 18 16:07:46 1999
327 +++ OpenPTC-GGI-0.5.0/tests/Link.cc Sat Dec 21 10:18:50 2002
335 // this program does nothing but test linkage with OpenPTC
\r
336 printf("congratulations you passed the link test\n");
\r
339 --- OpenPTC-GGI-0.5.0/tests/Timer.cc.orig Thu Feb 18 16:28:08 1999
340 +++ OpenPTC-GGI-0.5.0/tests/Timer.cc Sat Dec 21 10:19:11 2002