1 diff -r -u OpenPTC-x11-1.0.0/CHANGES OpenPTC-x11-1.0.0-2/CHANGES
2 --- OpenPTC-x11-1.0.0/CHANGES Thu Apr 1 00:41:47 1999
3 +++ OpenPTC-x11-1.0.0-2/CHANGES Fri Apr 16 00:37:22 1999
6 ---------------------------------------------------------------------------
8 -Version OpenPTC 1.0 (01/04/1999):
9 +Version OpenPTC 1.0.0-2 (16/04/1999):
10 + - Fixed an annoying bug concerning palette handling in non-8 bit modes.
11 + The bug caused segfaults.
13 +Version OpenPTC 1.0.0 (01/04/1999):
14 - Upgraded the whole thing to the OpenPTC 1.0 standard
15 - The API is now f*r*o*z*e*n :)
16 - Implemented a microsecond timer using gettimeofday. Feel free to use
17 Only in OpenPTC-x11-1.0.0/library: libptc.so.1
18 diff -r -u OpenPTC-x11-1.0.0/ptc.spec OpenPTC-x11-1.0.0-2/ptc.spec
19 --- OpenPTC-x11-1.0.0/ptc.spec Thu Apr 1 00:27:49 1999
20 +++ OpenPTC-x11-1.0.0-2/ptc.spec Fri Apr 16 00:37:30 1999
26 Summary: OpenPTC for X11
28 diff -r -u OpenPTC-x11-1.0.0/source/X11/DGADisplay.cc OpenPTC-x11-1.0.0-2/source/X11/DGADisplay.cc
29 --- OpenPTC-x11-1.0.0/source/X11/DGADisplay.cc Sat Mar 20 23:44:44 1999
30 +++ OpenPTC-x11-1.0.0-2/source/X11/DGADisplay.cc Fri Apr 16 00:33:39 1999
33 // Create colour map in 8 bit mode
35 + m_colours=new XColor[256];
36 + if(!m_colours) throw Error("Cannot allocated colour map cells");
38 if(m_format.bits()==8)
40 - m_colours=new XColor[256];
41 - if(!m_colours) throw Error("Cannot allocated colour map cells");
43 m_cmap=XCreateColormap(m_disp,RootWindow(m_disp,m_screen),
44 DefaultVisual(m_disp,m_screen),AllocAll);
45 if(!m_cmap) throw Error("Cannot create colour map");
46 diff -r -u OpenPTC-x11-1.0.0/source/X11/WindowDisplay.cc OpenPTC-x11-1.0.0-2/source/X11/WindowDisplay.cc
47 --- OpenPTC-x11-1.0.0/source/X11/WindowDisplay.cc Mon Mar 29 18:57:39 1999
48 +++ OpenPTC-x11-1.0.0-2/source/X11/WindowDisplay.cc Fri Apr 16 00:33:52 1999
51 void X11WindowDisplay::createColormap()
53 + m_colours=new XColor[256];
54 + if(!m_colours) throw Error("Cannot allocated colour map cells");
56 // If we are in indexed mode, create the colour map
57 if(m_format.bits()==8)
59 - m_colours=new XColor[256];
60 - if(!m_colours) throw Error("Cannot allocated colour map cells");
62 m_cmap=XCreateColormap(m_disp,RootWindow(m_disp,m_screen),
63 DefaultVisual(m_disp,m_screen),AllocAll);
64 if(!m_cmap) throw Error("Cannot create colour map");