Changeset 5825 for trunk/src/gdi32/dibitmap.cpp
- Timestamp:
- May 29, 2001, 11:45:21 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/dibitmap.cpp
r5799 r5825 1 /* $Id: dibitmap.cpp,v 1.1 6 2001-05-25 10:05:28sandervl Exp $ */1 /* $Id: dibitmap.cpp,v 1.17 2001-05-29 09:45:21 sandervl Exp $ */ 2 2 3 3 /* … … 203 203 //****************************************************************************** 204 204 //****************************************************************************** 205 UINT WIN32API GetDIBColorTable( 206 207 { 208 HPALETTE hpal = GetCurrentObject(hdc, OBJ_PAL);205 UINT WIN32API GetDIBColorTable(HDC hdc, UINT uStartIndex, UINT cEntries, 206 RGBQUAD *pColors) 207 { 208 DIBSection *dsect = DIBSection::findHDC(hdc); 209 209 UINT rc; 210 210 int i; 211 211 212 rc = O32_GetPaletteEntries(hpal, 213 uStartIndex, 214 cEntries, 215 (PALETTEENTRY *)pColors); 212 dprintf(("GetDIBColorTable %x %d->%d %x", hdc, uStartIndex, cEntries, pColors)); 213 214 if(dsect) 215 { 216 return(dsect->GetDIBColorTable(uStartIndex, cEntries, pColors)); 217 } 218 //TODO: Is this correct????? 219 // Wine returns 0 if bitmap selected into dc with bpp > 8 220 HPALETTE hpal = GetCurrentObject(hdc, OBJ_PAL); 221 rc = O32_GetPaletteEntries(hpal, uStartIndex, 222 cEntries, (PALETTEENTRY *)pColors); 216 223 for(i=0; 217 224 i<cEntries; … … 230 237 //****************************************************************************** 231 238 UINT WIN32API SetDIBColorTable(HDC hdc, UINT uStartIndex, UINT cEntries, 232 239 RGBQUAD *pColors) 233 240 { 234 241 DIBSection *dsect = DIBSection::findHDC(hdc); 235 242 236 dprintf(("GDI32: SetDIBColorTable \n"));243 dprintf(("GDI32: SetDIBColorTable %x %d,%d %x", hdc, uStartIndex, cEntries, pColors)); 237 244 if(dsect) 238 245 {
Note:
See TracChangeset
for help on using the changeset viewer.