Changeset 3302 for trunk/src/gdi32/blit.cpp
- Timestamp:
- Apr 2, 2000, 2:24:40 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/blit.cpp
r3298 r3302 1 /* $Id: blit.cpp,v 1. 7 2000-04-02 10:12:53sandervl Exp $ */1 /* $Id: blit.cpp,v 1.8 2000-04-02 12:24:39 sandervl Exp $ */ 2 2 3 3 /* … … 38 38 dprintf(("GDI32: StretchBlt Src : %x (%d, %d) size (%d, %d)\n", 39 39 hdcSrc, nXOriginSrc, nYOriginSrc, nWidthSrc, nHeightSrc)); 40 SetLastError(0); 40 41 if(DIBSection::getSection() != NULL) 41 42 { … … 59 60 BOOL rc; 60 61 62 SetLastError(0); 61 63 if(DIBSection::getSection() != NULL) { 62 64 DIBSection *dsect = DIBSection::findHDC(hdcSrc); 63 65 if(dsect) { 64 rc = dsect->BitBlt(hdcDest, arg2, arg3, arg4, arg5, arg7, arg8, arg4, arg5, arg9); 65 if(rc) { 66 BITMAPINFO bmpinfo = {0}; 67 DIBSection *dest = DIBSection::findHDC(hdcDest); 68 if(dest) { 69 dprintf(("Sync dest DIB section")); 70 bmpinfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); 71 GetDIBits(hdcDest, dest->GetBitmapHandle(), 0, 0, 0, &bmpinfo, dest->GetRGBUsage()); 72 dprintf(("height %d", bmpinfo.bmiHeader.biHeight)); 73 dprintf(("width %d", bmpinfo.bmiHeader.biWidth)); 74 dprintf(("biBitCount %d", bmpinfo.bmiHeader.biBitCount)); 75 GetDIBits(hdcDest, dest->GetBitmapHandle(), 0, bmpinfo.bmiHeader.biHeight, dest->GetDIBObject(), &bmpinfo, dest->GetRGBUsage()); 76 } 77 } 78 return rc; 66 return dsect->BitBlt(hdcDest, arg2, arg3, arg4, arg5, arg7, arg8, arg4, arg5, arg9); 79 67 } 80 68 }
Note:
See TracChangeset
for help on using the changeset viewer.