Changeset 7635 for trunk/src/gdi32/dibitmap.cpp
- Timestamp:
- Dec 15, 2001, 7:51:16 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/dibitmap.cpp
r7327 r7635 1 /* $Id: dibitmap.cpp,v 1.2 8 2001-11-13 13:18:22sandervl Exp $ */1 /* $Id: dibitmap.cpp,v 1.29 2001-12-15 18:50:25 sandervl Exp $ */ 2 2 3 3 /* … … 19 19 #include "dibsect.h" 20 20 #include "rgbcvt.h" 21 #include <stats.h> 21 22 22 23 #define DBG_LOCALLOG DBG_dibitmap … … 131 132 ((BITMAPINFOHEADER *)lpbmih)->biBitCount = biBitCount; 132 133 134 if(rc) STATS_CreateDIBitmap(rc, hdc, lpbmih, fdwInit, lpbInit, lpbmi, fuUsage); 135 133 136 return rc; 134 137 } … … 141 144 hBitmap = O32_CreateCompatibleBitmap(hdc, nWidth, nHeight); 142 145 dprintf(("GDI32: CreateCompatibleBitmap %x (%d,%d) returned %x", hdc, nWidth, nHeight, hBitmap)); 146 if(hBitmap) STATS_CreateCompatibleBitmap(hBitmap,hdc, nWidth, nHeight); 147 143 148 return hBitmap; 144 149 } … … 160 165 hBitmap = O32_CreateBitmap(nWidth, nHeight, cPlanes, cBitsPerPel, lpvBits); 161 166 dprintf(("GDI32: CreateBitmap (%d,%d) bps %d returned %x", nWidth, nHeight, cBitsPerPel, hBitmap)); 167 if(hBitmap) STATS_CreateBitmap(hBitmap,nWidth, nHeight, cPlanes, cBitsPerPel, lpvBits); 168 162 169 return(hBitmap); 163 170 } … … 170 177 dprintf(("GDI32: CreateBitmapIndirect (%d,%d) bpp %d bits %x", pBitmap->bmWidth, pBitmap->bmHeight, pBitmap->bmBitsPixel, pBitmap->bmBits)); 171 178 hBitmap = O32_CreateBitmapIndirect(pBitmap); 179 if(hBitmap) STATS_CreateBitmapIndirect(hBitmap, pBitmap); 180 172 181 dprintf(("GDI32: CreateBitmapIndirect returned %x", hBitmap)); 173 182 return hBitmap; … … 243 252 244 253 if(fCreateDC) DeleteDC(hdc); 254 255 STATS_CreateDIBSection(res, hdc, pbmi, iUsage, ppvBits, hSection, dwOffset); 256 245 257 return(res); 246 258 }
Note:
See TracChangeset
for help on using the changeset viewer.