Changeset 3126 for trunk/src/gdi32/dibitmap.cpp
- Timestamp:
- Mar 16, 2000, 8:18:14 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/dibitmap.cpp
r2802 r3126 1 /* $Id: dibitmap.cpp,v 1. 4 2000-02-16 14:18:09sandervl Exp $ */1 /* $Id: dibitmap.cpp,v 1.5 2000-03-16 19:18:14 sandervl Exp $ */ 2 2 3 3 /* … … 48 48 //****************************************************************************** 49 49 //****************************************************************************** 50 HBITMAP WIN32API CreateCompatibleBitmap( HDC arg1, int arg2, int arg3)51 { 52 dprintf(("GDI32: CreateCompatibleBitmap \n"));53 return O32_CreateCompatibleBitmap( arg1, arg2, arg3);50 HBITMAP WIN32API CreateCompatibleBitmap( HDC hdc, int nWidth, int nHeight) 51 { 52 dprintf(("GDI32: CreateCompatibleBitmap %x (%d,%d)", hdc, nWidth, nHeight)); 53 return O32_CreateCompatibleBitmap(hdc, nWidth, nHeight); 54 54 } 55 55 //****************************************************************************** … … 87 87 BOOL fFlip = 0; 88 88 int iHeight, iWidth; 89 BOOL fCreateDC = FALSE; 89 90 90 91 dprintf(("GDI32: CreateDIBSection %x %x %x %x %d", hdc, iUsage, ppvBits, hSection, dwOffset)); … … 106 107 } 107 108 109 //SvL: RP7 (update) calls this api with hdc == 0 110 if(hdc == 0) { 111 hdc = GetWindowDC(GetDesktopWindow()); 112 fCreateDC = TRUE; 113 } 108 114 res = O32_CreateDIBitmap(hdc, &pbmi->bmiHeader, 0, NULL, pbmi, iUsage); 109 115 if (res) … … 150 156 pbmi->bmiHeader.biHeight = iHeight; 151 157 158 if(fCreateDC) ReleaseDC(GetDesktopWindow(), hdc); 152 159 return(res); 153 160 } 154 161 } 162 if(fCreateDC) ReleaseDC(GetDesktopWindow(), hdc); 155 163 156 164 /* Error. */
Note:
See TracChangeset
for help on using the changeset viewer.