- Timestamp:
- Nov 5, 1999, 10:17:27 AM (26 years ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/gdi32.cpp
r1533 r1606 1 /* $Id: gdi32.cpp,v 1.1 2 1999-10-31 21:38:17 achimhaExp $ */1 /* $Id: gdi32.cpp,v 1.13 1999-11-05 09:17:27 sandervl Exp $ */ 2 2 3 3 /* … … 297 297 //****************************************************************************** 298 298 //****************************************************************************** 299 int WIN32API StretchDIBits( HDC arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, const void * arg10, const BITMAPINFO *arg11, UINT arg12, DWORD arg13) 300 { 299 INT WIN32API StretchDIBits(HDC hdc, INT xDst, INT yDst, INT widthDst, 300 INT heightDst, INT xSrc, INT ySrc, INT widthSrc, 301 INT heightSrc, const void *bits, 302 const BITMAPINFO *info, UINT wUsage, DWORD dwRop ) 303 { 304 #if 1 305 dprintf(("GDI32: StretchDIBits")); 306 307 if(wUsage == DIB_PAL_COLORS && info->bmiHeader.biSize == sizeof(BITMAPINFOHEADER)) 308 { 309 // workaround for open32 bug. 310 // If syscolors > 256 and wUsage == DIB_PAL_COLORS. 311 312 int i; 313 USHORT *pColorIndex = (USHORT *)info->bmiColors; 314 RGBQUAD *pColors = (RGBQUAD *) alloca(info->bmiHeader.biClrUsed * 315 sizeof(RGBQUAD)); 316 BITMAPINFO *infoLoc = (BITMAPINFO *) alloca(sizeof(BITMAPINFO) + 317 info->bmiHeader.biClrUsed * sizeof(RGBQUAD)); 318 319 memcpy(infoLoc, info, sizeof(BITMAPINFO)); 320 321 if(GetDIBColorTable(hdc, 0, info->bmiHeader.biClrUsed, pColors) == 0) 322 return FALSE; 323 324 for(i=0;i<info->bmiHeader.biClrUsed;i++, pColorIndex++) 325 { 326 infoLoc->bmiColors[i] = pColors[*pColorIndex]; 327 } 328 329 return O32_StretchDIBits(hdc, xDst, yDst, widthDst, heightDst, xSrc, ySrc, 330 widthSrc, heightSrc, (void *)bits, 331 (PBITMAPINFO)infoLoc, DIB_RGB_COLORS, dwRop); 332 } 333 334 return O32_StretchDIBits(hdc, xDst, yDst, widthDst, heightDst, xSrc, ySrc, 335 widthSrc, heightSrc, (void *)bits, 336 (PBITMAPINFO)info, wUsage, dwRop); 337 #else 301 338 dprintf(("GDI32: StretchDIBits\n")); 302 339 return O32_StretchDIBits(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, (void *)arg10, (PBITMAPINFO)arg11, arg12, arg13); 340 #endif 303 341 } 304 342 //****************************************************************************** … … 2054 2092 int i; 2055 2093 2056 dprintf(("GDI32: OS2GetDIBColorTable, not implemented?\n"));2057 2094 rc = O32_GetPaletteEntries(hpal, 2058 2095 uStartIndex, … … 2063 2100 i++) 2064 2101 { 2102 BYTE tmp; 2103 tmp = pColors[i].rgbBlue; 2104 pColors[i].rgbBlue = pColors[i].rgbRed; 2105 pColors[i].rgbRed = tmp; 2065 2106 pColors[i].rgbReserved = 0; 2066 2107 } 2067 dprintf(("GDI32: GetDIBColor returns %d\n", rc));2108 dprintf(("GDI32: GetDIBColorTable returns %d\n", rc)); 2068 2109 return(rc); 2069 2110 } -
trunk/src/ole32/oleClip.cpp
r872 r1606 1 /* $Id: oleClip.cpp,v 1. 2 1999-09-08 11:29:28 davidrExp $ */1 /* $Id: oleClip.cpp,v 1.3 1999-11-05 09:15:51 sandervl Exp $ */ 2 2 /* 3 3 * … … 701 701 702 702 // if ( !( atom = GlobalFindAtomA(OLEClipbrd_WNDCLASS) ) || !( CLASS_FindClassByAtom(atom, 0) ) ) 703 if ( !( atom = GlobalFindAtomA(OLEClipbrd_WNDCLASS) ) )704 {703 // if ( !( atom = GlobalFindAtomA(OLEClipbrd_WNDCLASS) ) ) 704 // { 705 705 ZeroMemory( &wcex, sizeof(WNDCLASSEXA)); 706 706 … … 715 715 716 716 RegisterClassExA(&wcex); 717 }717 // } 718 718 719 719 /* -
trunk/src/user32/loadres.cpp
r1592 r1606 1 /* $Id: loadres.cpp,v 1.1 2 1999-11-04 13:02:49 phallerExp $ */1 /* $Id: loadres.cpp,v 1.13 1999-11-05 09:16:21 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 if(winres == NULL) { 35 35 dprintf(("LoadStringA NOT FOUND from %X, id %d buffersize %d\n", hinst, wID, cchBuffer)); 36 //TODO: BAD HACK! 37 if(cchBuffer > 3) 38 { 39 strcpy(lpBuffer, "XXX"); 40 return 3; 41 } 42 //TODO: BAD HACK! 36 43 *lpBuffer = 0; 37 44 return 0; -
trunk/src/user32/oslibmsg.cpp
r1504 r1606 1 /* $Id: oslibmsg.cpp,v 1. 6 1999-10-28 22:41:00sandervl Exp $ */1 /* $Id: oslibmsg.cpp,v 1.7 1999-11-05 09:16:22 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 145 145 } 146 146 147 if(msg >= WIN32APP_USERMSGBASE) 148 return msg - WIN32APP_USERMSGBASE; 149 147 150 for(int i=0;i<MAX_MSGTRANSTAB;i++) 148 151 { -
trunk/src/user32/win32class.cpp
r1540 r1606 1 /* $Id: win32class.cpp,v 1. 5 1999-11-01 19:11:42 sandervl Exp $ */1 /* $Id: win32class.cpp,v 1.6 1999-11-05 09:16:22 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Managment Code for OS/2 … … 158 158 } 159 159 if(fUnicode) { 160 return (lstrcmpW(classNameW, (LPWSTR)classname) == 0); 161 } 162 else return (strcmp(classNameA, classname) == 0); 160 if(classNameW) 161 return (lstrcmpW(classNameW, (LPWSTR)classname) == 0); 162 return FALSE; 163 } 164 else { 165 if(classNameA) 166 return (strcmp(classNameA, classname) == 0); 167 return FALSE; 168 } 163 169 } 164 170 //****************************************************************************** … … 177 183 if(HIWORD(id) != 0) { 178 184 //CB: read comment below! 179 if( stricmp(wndclass->classNameA, id) == 0 && wndclass->hInstance == hInstance) {185 if(lstrcmpiA(wndclass->classNameA, id) == 0 && wndclass->hInstance == hInstance) { 180 186 leaveMutex(OBJTYPE_CLASS); 181 187 return(wndclass); … … 184 190 wndclass = (Win32WndClass *)wndclass->GetNext(); 185 191 while(wndclass != NULL) { 186 if( stricmp(wndclass->classNameA, id) == 0)192 if(lstrcmpiA(wndclass->classNameA, id) == 0) 187 193 { 188 194 //SvL: According to Wine, if the instance handle is the one of the main exe, everything is ok -
trunk/src/user32/win32wbase.cpp
r1583 r1606 1 /* $Id: win32wbase.cpp,v 1.7 5 1999-11-03 22:04:22 cbratschiExp $ */1 /* $Id: win32wbase.cpp,v 1.76 1999-11-05 09:16:22 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2486 2486 BOOL Win32BaseWindow::hasWindowName(LPSTR wndname, BOOL fUnicode) 2487 2487 { 2488 if(wndname == NULL) 2489 return FALSE; 2490 2488 2491 if(fUnicode) { 2489 2492 return (lstrcmpW(windowNameW, (LPWSTR)wndname) == 0); -
trunk/src/user32/window.cpp
r1540 r1606 1 /* $Id: window.cpp,v 1.3 2 1999-11-01 19:11:45sandervl Exp $ */1 /* $Id: window.cpp,v 1.33 1999-11-05 09:16:22 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 1423 1423 //****************************************************************************** 1424 1424 //****************************************************************************** 1425 UINT WIN32API ArrangeIconicWindows( HWND arg1) 1426 { 1427 #ifdef DEBUG 1428 WriteLog("USER32: ArrangeIconicWindows\n"); 1429 #endif 1430 return O32_ArrangeIconicWindows(arg1); 1425 UINT WIN32API ArrangeIconicWindows( HWND hwnd) 1426 { 1427 dprintf(("USER32: ArrangeIconicWindows %x", hwnd)); 1428 return O32_ArrangeIconicWindows(Win32BaseWindow::Win32ToOS2FrameHandle(hwnd)); 1431 1429 } 1432 1430 //****************************************************************************** … … 1445 1443 //****************************************************************************** 1446 1444 //****************************************************************************** 1447 BOOL WIN32API ShowOwnedPopups( HWND arg1, BOOL arg2)1448 { 1449 dprintf(("USER32: ShowOwnedPopups \n"));1450 return O32_ShowOwnedPopups( arg1, arg2);1451 } 1452 //****************************************************************************** 1453 //****************************************************************************** 1454 1445 BOOL WIN32API ShowOwnedPopups( HWND hwnd, BOOL arg2) 1446 { 1447 dprintf(("USER32: ShowOwnedPopups %x", hwnd)); 1448 return O32_ShowOwnedPopups(Win32BaseWindow::Win32ToOS2FrameHandle(hwnd), arg2); 1449 } 1450 //****************************************************************************** 1451 //****************************************************************************** 1452
Note:
See TracChangeset
for help on using the changeset viewer.