From da6d4130c3c57e40049febe323cce7a3c8a38b4e Mon Sep 17 00:00:00 2001 From: Jason Filby Date: Sun, 1 Apr 2001 15:18:35 +0000 Subject: [PATCH] fixed a stupid bug svn path=/trunk/; revision=1770 --- reactos/subsys/win32k/eng/xlate.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/reactos/subsys/win32k/eng/xlate.c b/reactos/subsys/win32k/eng/xlate.c index c007e256fac..a97a1bb2328 100644 --- a/reactos/subsys/win32k/eng/xlate.c +++ b/reactos/subsys/win32k/eng/xlate.c @@ -107,14 +107,8 @@ XLATEOBJ *EngCreateXlate(USHORT DestPalType, USHORT SourcePalType, NewXlate = CreateGDIHandle(XlateGDI, XlateObj); - if(SourcePalType == PAL_INDEXED) - { - SourcePalGDI = AccessInternalObject(PaletteSource); - } else - if(DestPalType == PAL_INDEXED) - { - DestPalGDI = AccessInternalObject(PaletteDest); - } + if(SourcePalType == PAL_INDEXED) SourcePalGDI = AccessInternalObject(PaletteSource); + if(DestPalType == PAL_INDEXED) DestPalGDI = AccessInternalObject(PaletteDest); XlateObj->iSrcType = SourcePalType; XlateObj->iDstType = DestPalType; @@ -138,10 +132,8 @@ XLATEOBJ *EngCreateXlate(USHORT DestPalType, USHORT SourcePalType, if( (SourcePalType == PAL_INDEXED) || (SourcePalType == PAL_RGB) ) { XlateObj->flXlate |= XO_TABLE; - if (SourcePalType == PAL_INDEXED) IndexedColors = SourcePalGDI->NumColors; if (DestPalType == PAL_INDEXED) IndexedColors = DestPalGDI->NumColors; - XlateGDI->translationTable = EngAllocMem(FL_ZERO_MEMORY, sizeof(ULONG)*IndexedColors, NULL); }