- Timestamp:
- Sep 10, 2001, 1:02:41 PM (24 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/blit.cpp
r6319 r6692 1 /* $Id: blit.cpp,v 1.3 3 2001-07-13 19:34:21sandervl Exp $ */1 /* $Id: blit.cpp,v 1.34 2001-09-10 11:02:40 sandervl Exp $ */ 2 2 3 3 /* … … 376 376 { 377 377 INT rc; 378 DWORD bitfields[3] ;378 DWORD bitfields[3], compression = 0; 379 379 WORD *newbits = NULL; 380 380 … … 466 466 bits = newbits; 467 467 } 468 //SvL: Ignore BI_BITFIELDS type (SetDIBitsToDevice fails otherwise) 469 if(info->bmiHeader.biCompression == BI_BITFIELDS) { 470 ((BITMAPINFO *)info)->bmiHeader.biCompression = 0; 471 compression = BI_BITFIELDS; 472 473 } 468 474 469 475 rc = O32_StretchDIBits(hdc, xDst, yDst, widthDst, heightDst, xSrc, ySrc, … … 471 477 (PBITMAPINFO)info, wUsage, dwRop); 472 478 479 if(compression == BI_BITFIELDS) { 480 ((BITMAPINFO *)info)->bmiHeader.biCompression = BI_BITFIELDS; 481 } 473 482 if(newbits) free(newbits); 474 483 -
trunk/src/gdi32/transform.cpp
r6411 r6692 1 /* $Id: transform.cpp,v 1. 6 2001-07-30 12:00:38sandervl Exp $ */1 /* $Id: transform.cpp,v 1.7 2001-09-10 11:02:41 sandervl Exp $ */ 2 2 3 3 /* … … 68 68 { 69 69 BOOL ret; 70 DWORDhdcwidth, hdcheight;70 LONG hdcwidth, hdcheight; 71 71 pDCData pHps; 72 72
Note:
See TracChangeset
for help on using the changeset viewer.