mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
fixed a stupid bug
svn path=/trunk/; revision=1770
This commit is contained in:
parent
6ca8f2a32b
commit
da6d4130c3
1 changed files with 2 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue