- Timestamp:
- Oct 28, 2002, 2:24:44 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/dibitmap.cpp
r8874 r9359 1 /* $Id: dibitmap.cpp,v 1.3 3 2002-07-15 11:19:51sandervl Exp $ */1 /* $Id: dibitmap.cpp,v 1.34 2002-10-28 13:24:44 sandervl Exp $ */ 2 2 3 3 /* … … 373 373 void *lpvBits, PBITMAPINFO lpbi, UINT uUsage) 374 374 { 375 int nrlines;375 int nrlines; 376 376 377 377 dprintf(("GDI32: GetDIBits %x %x %d %d %x %x (biBitCount %d) %d", hdc, hBitmap, uStartScan, cScanLines, lpvBits, lpbi, lpbi->bmiHeader.biBitCount, uUsage)); … … 381 381 HDC hdcMem = CreateCompatibleDC(0); 382 382 383 nrlines = O32_GetDIBits(hdcMem, hBitmap, uStartScan, cScanLines, lpvBits, lpbi, uUsage); 383 if(lpbi->bmiHeader.biHeight < 0) { 384 //NOTE: workaround for WGSS bug; remove when fixed 385 LONG height = lpbi->bmiHeader.biHeight; 386 387 nrlines = O32_GetDIBits(hdcMem, hBitmap, uStartScan, cScanLines, lpvBits, lpbi, uUsage); 388 389 //NOTE: workaround for WGSS bug; remove when fixed 390 lpbi->bmiHeader.biHeight = height; 391 } 392 else { 393 nrlines = O32_GetDIBits(hdcMem, hBitmap, uStartScan, cScanLines, lpvBits, lpbi, uUsage); 394 } 384 395 385 396 DeleteDC(hdcMem);
Note:
See TracChangeset
for help on using the changeset viewer.