Changeset 12935
- Timestamp:
- Jan 7, 2000, 6:37:53 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/gdi32/gdi32.cpp ¶
r12857 r12935 1 /* $Id: gdi32.cpp,v 1.2 8 1999-12-30 18:51:48 sandervlExp $ */1 /* $Id: gdi32.cpp,v 1.29 2000-01-07 17:37:53 cbratschi Exp $ */ 2 2 3 3 /* … … 164 164 165 165 if(size == 0 || lpBuffer == NULL) { 166 167 166 SetLastError(ERROR_INVALID_PARAMETER); 167 return 0; 168 168 } 169 169 170 170 if(DIBSection::getSection() != NULL) 171 171 { 172 173 174 175 176 177 178 179 180 181 182 172 DIBSection *dsect = DIBSection::find(hObject); 173 if(dsect) 174 { 175 rc = dsect->GetDIBSection(size, lpBuffer); 176 if(rc == 0) { 177 SetLastError(ERROR_INVALID_PARAMETER); 178 return 0; 179 } 180 SetLastError(ERROR_SUCCESS); 181 return rc; 182 } 183 183 } 184 184 … … 915 915 { 916 916 if(lpRect == NULL) { 917 918 917 SetLastError(ERROR_INVALID_PARAMETER); 918 return 0; 919 919 } 920 920 dprintf(("GDI32: CreateRectRgnIndirect (%d,%d)(%d,%d)", lpRect->left, lpRect->top, lpRect->right, lpRect->bottom)); … … 923 923 //****************************************************************************** 924 924 //****************************************************************************** 925 HRGN WIN32API CreateRoundRectRgn(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, 925 HRGN WIN32API CreateRoundRectRgn(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, 926 926 int nWidthEllipse, int nHeightEllipse) 927 927 { … … 995 995 //****************************************************************************** 996 996 //****************************************************************************** 997 BOOL WIN32API PatBlt( HDC arg1, int arg2, int arg3, int arg4, int arg5, DWORD arg6) 998 { 999 BOOL rc; 1000 1001 rc = O32_PatBlt(arg1, arg2, arg3, arg4, arg5, arg6); 1002 dprintf(("GDI32: PatBlt (%d,%d) (%d,%d) returned %d\n", arg2, arg3, arg4, arg5, rc)); 997 BOOL WIN32API PatBlt(HDC hdc,int nXLeft,int nYLeft,int nWidth,int nHeight,DWORD dwRop) 998 { 999 BOOL rc; 1000 1001 //CB: Open32 bug: negative width/height not supported! 1002 if (nWidth < 0) 1003 { 1004 nXLeft += nWidth+1; 1005 nWidth = -nWidth; 1006 } 1007 if (nHeight < 0) 1008 { 1009 nYLeft += nHeight+1; 1010 nHeight = -nHeight; 1011 } 1012 rc = O32_PatBlt(hdc,nXLeft,nYLeft,nWidth,nHeight,dwRop); 1013 dprintf(("GDI32: PatBlt (%d,%d) (%d,%d) returned %d\n",nXLeft,nYLeft,nWidth,nHeight,rc)); 1003 1014 return(rc); 1004 1015 }
Note:
See TracChangeset
for help on using the changeset viewer.