Changeset 4034 for trunk/src/gdi32/dibitmap.cpp
- Timestamp:
- Aug 18, 2000, 8:14:59 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/dibitmap.cpp
r3235 r4034 1 /* $Id: dibitmap.cpp,v 1. 7 2000-03-25 12:19:07sandervl Exp $ */1 /* $Id: dibitmap.cpp,v 1.8 2000-08-18 18:14:56 sandervl Exp $ */ 2 2 3 3 /* … … 92 92 BOOL fCreateDC = FALSE; 93 93 94 dprintf(("GDI32: CreateDIBSection %x %x %x %x % d", hdc, iUsage, ppvBits, hSection, dwOffset));94 dprintf(("GDI32: CreateDIBSection %x %x %x %x %x %d", hdc, pbmi, iUsage, ppvBits, hSection, dwOffset)); 95 95 96 96 //SvL: 13-9-98: StarCraft uses bitmap with negative height … … 128 128 if(PalSize <= 8) 129 129 { 130 ULONG Pal[256] ;130 ULONG Pal[256], nrcolors; 131 131 LOGPALETTE tmpPal = { 0x300,1,{0,0,0,0}}; 132 132 HPALETTE hpalCur, hpalTmp; … … 137 137 138 138 // and use it to set the DIBColorTable 139 GetPaletteEntries( hpalCur, 0, 1<<PalSize, (LPPALETTEENTRY)&Pal);140 dsect->SetDIBColorTable(0, 1<< PalSize, (RGBQUAD*)&Pal);139 nrcolors = GetPaletteEntries( hpalCur, 0, 1<<PalSize, (LPPALETTEENTRY)&Pal); 140 dsect->SetDIBColorTable(0, nrcolors, (RGBQUAD*)&Pal); 141 141 142 142 // Restore the DC Palette
Note:
See TracChangeset
for help on using the changeset viewer.