diff options
author | Egbert Eich <eich@suse.de> | 2004-07-30 21:10:46 +0000 |
---|---|---|
committer | Egbert Eich <eich@suse.de> | 2004-07-30 21:10:46 +0000 |
commit | 0ba15599466ddb644728c6b68e64e05b1317ac2e (patch) | |
tree | a8ffa0ec4b451b03536e7a0789cfd7d20c5a8911 /hw/xwin | |
parent | bbfe7bed3fe4d9bd089327cd59e6faedb592dabb (diff) |
Adding a colormap index to the InitColormapPrivate() func call. Without it
it was completely useless.
test if colormap with index really exists in the list of installed maps
before using it.
Diffstat (limited to 'hw/xwin')
-rw-r--r-- | hw/xwin/ChangeLog | 6 | ||||
-rw-r--r-- | hw/xwin/winallpriv.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/hw/xwin/ChangeLog b/hw/xwin/ChangeLog index 9cc35ce6e..efec39370 100644 --- a/hw/xwin/ChangeLog +++ b/hw/xwin/ChangeLog @@ -1,3 +1,9 @@ +2004-07-30 Egbert Eich <set EMAIL_ADDRESS environment variable> + + reviewed by: <delete if not using a buddy> + + * winallpriv.c: (winInitCmapPrivates): + 2004-07-09 Alexander Gottwald <ago@freedesktop.org> * winconfig.c: Add entry for irish layout (ie) diff --git a/hw/xwin/winallpriv.c b/hw/xwin/winallpriv.c index 8fca13926..2c85645c7 100644 --- a/hw/xwin/winallpriv.c +++ b/hw/xwin/winallpriv.c @@ -116,7 +116,7 @@ winAllocatePrivates (ScreenPtr pScreen) */ Bool -winInitCmapPrivates (ColormapPtr pcmap) +winInitCmapPrivates (ColormapPtr pcmap, int index) { #if CYGDEBUG winDebug ("winInitCmapPrivates\n"); @@ -129,7 +129,9 @@ winInitCmapPrivates (ColormapPtr pcmap) * anything. Perhaps I am misunderstanding the purpose * of this function. */ - + /* That's definitely true. + * I therefore changed the API and added the index as argument. + */ return TRUE; } |