Changeset 2581 for trunk/src/gdi32/gdi32.cpp
- Timestamp:
- Jan 31, 2000, 11:30:08 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/gdi32.cpp
r2573 r2581 1 /* $Id: gdi32.cpp,v 1.3 5 2000-01-30 15:04:40sandervl Exp $ */1 /* $Id: gdi32.cpp,v 1.36 2000-01-31 22:30:08 sandervl Exp $ */ 2 2 3 3 /* … … 319 319 320 320 OSLibGpiSetCp(newHdc, oldcp); 321 dprintf(("CreateCompatibleDC %X returned %x", hdc, newHdc)); 321 322 return newHdc; 322 323 } … … 329 330 { 330 331 #if 1 331 dprintf(("GDI32: StretchDIBits "));332 dprintf(("GDI32: StretchDIBits %x to (%d,%d) (%d,%d) from (%d,%d) (%d,%d), %x %x %x %x", hdc, xDst, yDst, widthDst, heightDst, xSrc, ySrc, widthSrc, heightSrc, bits, info, wUsage, dwRop)); 332 333 333 334 if(wUsage == DIB_PAL_COLORS && info->bmiHeader.biSize == sizeof(BITMAPINFOHEADER)) … … 1246 1247 //****************************************************************************** 1247 1248 //****************************************************************************** 1248 HANDLE WIN32API GetCurrentObject( HDC arg1, UINT arg2)1249 { 1250 dprintf(("GDI32: GetCurrentObject "));1251 return (HANDLE)O32_GetCurrentObject( arg1, arg2);1249 HANDLE WIN32API GetCurrentObject( HDC hdc, UINT arg2) 1250 { 1251 dprintf(("GDI32: GetCurrentObject %x %x", hdc, arg2)); 1252 return (HANDLE)O32_GetCurrentObject(hdc, arg2); 1252 1253 } 1253 1254 //****************************************************************************** … … 1515 1516 //****************************************************************************** 1516 1517 //****************************************************************************** 1517 BOOL WIN32API GetTextExtentPoint32A( HDC arg1, LPCSTR arg2, int arg3, PSIZE lpSize) 1518 { 1519 dprintf(("GDI32: GetTextExtentPoint32A")); 1518 BOOL WIN32API GetTextExtentPoint32A( HDC hdc, LPCSTR lpsz, int cbString, PSIZE lpSize) 1519 { 1520 BOOL rc; 1521 1520 1522 lpSize->cx = lpSize->cy = 0; 1521 return O32_GetTextExtentPoint32(arg1, arg2, arg3, lpSize); 1523 rc = O32_GetTextExtentPoint32(hdc, lpsz, cbString, lpSize); 1524 dprintf(("GDI32: GetTextExtentPoint32A %x %s %d returned %d (%d,%d)", hdc, lpsz, cbString, rc, lpSize->cx, lpSize->cy)); 1525 return rc; 1522 1526 } 1523 1527 //****************************************************************************** … … 1896 1900 //****************************************************************************** 1897 1901 //****************************************************************************** 1898 int WIN32API SelectClipRgn( HDC arg1, HRGN arg2)1899 { 1900 dprintf(("GDI32: SelectClipRgn "));1901 return O32_SelectClipRgn( arg1, arg2);1902 int WIN32API SelectClipRgn( HDC hdc, HRGN hRgn) 1903 { 1904 dprintf(("GDI32: SelectClipRgn %x %x", hdc, hRgn)); 1905 return O32_SelectClipRgn(hdc, hRgn); 1902 1906 } 1903 1907 //****************************************************************************** … … 2006 2010 // if(xDest == 0 && yDest == 0 && xSrc == 0 && ySrc == 0 && cx == width && cy == height) { 2007 2011 // result = OSLibSetDIBitsToDevice(hdc, xDest, yDest, cx, cy, xSrc, ySrc, startscan, lines, (PVOID) bits, (WINBITMAPINFOHEADER*)info, coloruse); 2012 // result = lines; 2008 2013 // } 2009 2014 // else { … … 2241 2246 if(pbmi->bmiHeader.biWidth < 0) 2242 2247 { 2243 pbmi->bmiHeader.biWidth = -pbmi->bmiHeader.biWidth; 2244 fFlip = FLIP_HOR; 2248 dprintf(("CreateDIBSection: width %d", pbmi->bmiHeader.biWidth)); 2249 pbmi->bmiHeader.biWidth = -pbmi->bmiHeader.biWidth; 2250 fFlip = FLIP_HOR; 2245 2251 } 2246 2252 iHeight = pbmi->bmiHeader.biHeight; 2247 2253 if(pbmi->bmiHeader.biHeight < 0) 2248 2254 { 2249 pbmi->bmiHeader.biHeight = -pbmi->bmiHeader.biHeight; 2250 fFlip |= FLIP_VERT; 2255 dprintf(("CreateDIBSection: height %d", pbmi->bmiHeader.biHeight)); 2256 pbmi->bmiHeader.biHeight = -pbmi->bmiHeader.biHeight; 2257 fFlip |= FLIP_VERT; 2251 2258 } 2252 2259 … … 2288 2295 pbmi->bmiHeader.biHeight = iHeight; 2289 2296 2290 dprintf(("GDI32: return %08X\n",res));2291 2297 return(res); 2292 2298 }
Note:
See TracChangeset
for help on using the changeset viewer.