- Timestamp:
- Apr 23, 2000, 5:34:10 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/dibsect.cpp
r3418 r3437 1 /* $Id: dibsect.cpp,v 1.2 8 2000-04-18 11:11:52sandervl Exp $ */1 /* $Id: dibsect.cpp,v 1.29 2000-04-23 15:34:10 sandervl Exp $ */ 2 2 3 3 /* … … 320 320 dibinfo.dsBitfields[1] = (pbmi->biCompression == BI_BITFIELDS) ? *((DWORD *)pColors + 1) : 0x03e0; 321 321 dibinfo.dsBitfields[2] = (pbmi->biCompression == BI_BITFIELDS) ? *((DWORD *)pColors + 2) : 0x001f; 322 if(dibinfo.dsBitfields[1] == 0x03e0) { 323 if(bmpBitsRGB565) 324 DosFreeMem(bmpBitsRGB565); 325 DosAllocMem((PPVOID)&bmpBitsRGB565, bmpsize*pbmi->biHeight, PAG_READ|PAG_WRITE|PAG_COMMIT); 326 } 322 327 break; 323 328 … … 434 439 point[2].x = nXsrc; 435 440 point[2].y = pOS2bmp->cy - nYsrc - nSrcHeight; 436 point[3].x = nXsrc + nSrcWidth - 1;437 point[3].y = pOS2bmp->cy - nYsrc - 1;441 point[3].x = nXsrc + nSrcWidth; 442 point[3].y = pOS2bmp->cy - nYsrc; 438 443 439 444 oldyinversion = GpiQueryYInversion(hps);
Note:
See TracChangeset
for help on using the changeset viewer.