]> git.pld-linux.org Git - packages/OpenPTC-x11.git/blob - OpenPTC-x11-1.0.0-1.0.0-2.patch
http://www.cs.ucl.ac.uk/students/c.nentwich/ptc/OpenPTC-x11-1.0.0-1.0.0-2.patch
[packages/OpenPTC-x11.git] / OpenPTC-x11-1.0.0-1.0.0-2.patch
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
4 @@ -4,7 +4,11 @@
5  
6  ---------------------------------------------------------------------------
7  
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.
12 +
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
21 @@ -1,5 +1,5 @@
22  %define version 1.0.0
23 -%define rel 1
24 +%define rel 2
25  
26  Summary: OpenPTC for X11
27  Name: OpenPTC-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
31 @@ -231,11 +231,11 @@
32  
33    // Create colour map in 8 bit mode
34  
35 +  m_colours=new XColor[256];
36 +  if(!m_colours) throw Error("Cannot allocated colour map cells");
37 +
38    if(m_format.bits()==8)
39    {
40 -    m_colours=new XColor[256];
41 -    if(!m_colours) throw Error("Cannot allocated colour map cells");
42 -
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
49 @@ -266,12 +266,12 @@
50  
51  void X11WindowDisplay::createColormap()
52  {
53 +  m_colours=new XColor[256];
54 +  if(!m_colours) throw Error("Cannot allocated colour map cells");
55 +
56    // If we are in indexed mode, create the colour map 
57    if(m_format.bits()==8)
58    { 
59 -    m_colours=new XColor[256];
60 -    if(!m_colours) throw Error("Cannot allocated colour map cells");
61 -
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");
This page took 0.055157 seconds and 3 git commands to generate.