- Timestamp:
- Nov 11, 1999, 2:16:40 PM (26 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/font.cpp
r1699 r1703 1 /* $Id: font.cpp,v 1. 4 1999-11-10 23:30:45 phallerExp $ */1 /* $Id: font.cpp,v 1.5 1999-11-11 13:16:40 sandervl Exp $ */ 2 2 3 3 /* … … 5 5 * 6 6 * Copyright 1999 Edgar Buerkle (Edgar.Buerkle@gmx.ne) 7 * Copyright 199 8Sander van Leeuwen (sandervl@xs4all.nl)7 * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl) 8 8 * Copyright 1998 Patrick Haller 9 9 * 10 * TODO: EnumFontsA/W, EnumFontFamiliesExA/W + others 10 * TODO: EnumFontsA/W, EnumFontFamiliesExA/W not complete 11 * 12 * Parts based on Wine code (991031) 13 * 14 * Copyright 1993 Alexandre Julliard 15 * 1997 Alex Korobka 11 16 * 12 17 * Project Odin Software License can be found in LICENSE.TXT … … 24 29 #include "misc.h" 25 30 #include "unicode.h" 26 #include <vmutex.h>27 31 #include <heapstring.h> 28 32 #include <win\options.h> … … 32 36 33 37 34 VMutex mutexProcWinA; 35 VMutex mutexProcWinW; 36 FONTENUMPROCA FontEnumProcWinA; 37 FONTENUMPROCW FontEnumProcWinW; 38 38 typedef struct { 39 DWORD userProc; 40 DWORD userData; 41 DWORD dwFlags; 42 } ENUMUSERDATA; 43 44 /* 45 * For TranslateCharsetInfo 46 */ 47 #define FS(x) {{0,0,0,0},{0x1<<(x),0}} 48 #define MAXTCIINDEX 32 49 static CHARSETINFO FONT_tci[MAXTCIINDEX] = { 50 /* ANSI */ 51 { ANSI_CHARSET, 1252, FS(0)}, 52 { EASTEUROPE_CHARSET, 1250, FS(1)}, 53 { RUSSIAN_CHARSET, 1251, FS(2)}, 54 { GREEK_CHARSET, 1253, FS(3)}, 55 { TURKISH_CHARSET, 1254, FS(4)}, 56 { HEBREW_CHARSET, 1255, FS(5)}, 57 { ARABIC_CHARSET, 1256, FS(6)}, 58 { BALTIC_CHARSET, 1257, FS(7)}, 59 /* reserved by ANSI */ 60 { DEFAULT_CHARSET, 0, FS(0)}, 61 { DEFAULT_CHARSET, 0, FS(0)}, 62 { DEFAULT_CHARSET, 0, FS(0)}, 63 { DEFAULT_CHARSET, 0, FS(0)}, 64 { DEFAULT_CHARSET, 0, FS(0)}, 65 { DEFAULT_CHARSET, 0, FS(0)}, 66 { DEFAULT_CHARSET, 0, FS(0)}, 67 { DEFAULT_CHARSET, 0, FS(0)}, 68 /* ANSI and OEM */ 69 { THAI_CHARSET, 874, FS(16)}, 70 { SHIFTJIS_CHARSET, 932, FS(17)}, 71 { GB2312_CHARSET, 936, FS(18)}, 72 { HANGEUL_CHARSET, 949, FS(19)}, 73 { CHINESEBIG5_CHARSET, 950, FS(20)}, 74 { JOHAB_CHARSET, 1361, FS(21)}, 75 /* reserved for alternate ANSI and OEM */ 76 { DEFAULT_CHARSET, 0, FS(0)}, 77 { DEFAULT_CHARSET, 0, FS(0)}, 78 { DEFAULT_CHARSET, 0, FS(0)}, 79 { DEFAULT_CHARSET, 0, FS(0)}, 80 { DEFAULT_CHARSET, 0, FS(0)}, 81 { DEFAULT_CHARSET, 0, FS(0)}, 82 { DEFAULT_CHARSET, 0, FS(0)}, 83 { DEFAULT_CHARSET, 0, FS(0)}, 84 /* reserved for system */ 85 { DEFAULT_CHARSET, 0, FS(0)}, 86 { DEFAULT_CHARSET, 0, FS(0)}, 87 }; 39 88 40 89 /***************************************************************************** … … 204 253 HFONT hfont; 205 254 206 //memcpy(&afont, lplf, (( int)&afont.lfFaceName - (int)&afont));255 //memcpy(&afont, lplf, ((ULONG)&afont.lfFaceName - (ULONG)&afont)); 207 256 memcpy(&afont, lplf, sizeof(LOGFONTA)); 208 257 memset(afont.lfFaceName, 0, LF_FACESIZE); … … 214 263 //****************************************************************************** 215 264 int EXPENTRY_O32 EnumFontProcA(LPENUMLOGFONTA lpLogFont, LPNEWTEXTMETRICA 216 lpTextM, DWORD arg3, LPARAM arg4) 217 { 218 return FontEnumProcWinA(lpLogFont, lpTextM, arg3, arg4); 265 lpTextM, DWORD arg3, LPARAM arg4) 266 { 267 ENUMUSERDATA *lpEnumData = (ENUMUSERDATA *)arg4; 268 FONTENUMPROCA proc = (FONTENUMPROCA)lpEnumData->userProc; 269 270 return proc(lpLogFont, lpTextM, arg3, lpEnumData->userData); 219 271 } 220 272 //****************************************************************************** 221 273 //****************************************************************************** 222 274 int EXPENTRY_O32 EnumFontProcW(LPENUMLOGFONTA lpLogFont, LPNEWTEXTMETRICA lpTextM, 223 DWORD arg3, LPARAM arg4) 224 { 225 ENUMLOGFONTW LogFont; 226 int rc; 227 228 memcpy(&LogFont, lpLogFont, ((int)&LogFont.elfLogFont.lfFaceName - 229 (int)&LogFont)); 275 DWORD arg3, LPARAM arg4) 276 { 277 ENUMUSERDATA *lpEnumData = (ENUMUSERDATA *)arg4; 278 FONTENUMPROCW proc = (FONTENUMPROCW)lpEnumData->userProc; 279 ENUMLOGFONTW LogFont; 280 NEWTEXTMETRICW textM; 281 int rc; 282 283 memcpy(&LogFont, lpLogFont, ((ULONG)&LogFont.elfLogFont.lfFaceName - 284 (ULONG)&LogFont)); 230 285 AsciiToUnicodeN(lpLogFont->elfLogFont.lfFaceName, LogFont.elfLogFont.lfFaceName, LF_FACESIZE-1); 231 286 AsciiToUnicodeN((char *) lpLogFont->elfFullName, LogFont.elfFullName, LF_FULLFACESIZE-1); 232 287 AsciiToUnicodeN((char *) lpLogFont->elfStyle, LogFont.elfStyle, LF_FACESIZE-1); 233 288 234 rc = FontEnumProcWinW(&LogFont, (LPNEWTEXTMETRICW) lpTextM, arg3, arg4); 235 return rc; 289 textM.tmHeight = lpTextM->tmHeight; 290 textM.tmAscent = lpTextM->tmAscent; 291 textM.tmDescent = lpTextM->tmDescent; 292 textM.tmInternalLeading = lpTextM->tmInternalLeading; 293 textM.tmExternalLeading = lpTextM->tmExternalLeading; 294 textM.tmAveCharWidth = lpTextM->tmAveCharWidth; 295 textM.tmMaxCharWidth = lpTextM->tmMaxCharWidth; 296 textM.tmWeight = lpTextM->tmWeight; 297 textM.tmOverhang = lpTextM->tmOverhang; 298 textM.tmDigitizedAspectX = lpTextM->tmDigitizedAspectX; 299 textM.tmDigitizedAspectY = lpTextM->tmDigitizedAspectY; 300 textM.tmFirstChar = lpTextM->tmFirstChar; 301 textM.tmLastChar = lpTextM->tmLastChar; 302 textM.tmDefaultChar = lpTextM->tmDefaultChar; 303 textM.tmBreakChar = lpTextM->tmBreakChar; 304 textM.tmItalic = lpTextM->tmItalic; 305 textM.tmUnderlined = lpTextM->tmUnderlined; 306 textM.tmStruckOut = lpTextM->tmStruckOut; 307 textM.tmPitchAndFamily = lpTextM->tmPitchAndFamily; 308 textM.tmCharSet = lpTextM->tmCharSet; 309 textM.ntmFlags = 0; 310 textM.ntmSizeEM = 0; 311 textM.ntmCellHeight = 0; 312 textM.ntmAvgWidth = 0; 313 314 return proc(&LogFont, &textM, arg3, lpEnumData->userData); 315 } 316 //****************************************************************************** 317 //TODO: FontEnumdwFlagsEx, script, font signature & NEWTEXTMETRICEX (last part) 318 //****************************************************************************** 319 int EXPENTRY_O32 EnumFontProcExA(LPENUMLOGFONTA lpLogFont, LPNEWTEXTMETRICA 320 lpTextM, DWORD arg3, LPARAM arg4) 321 { 322 ENUMUSERDATA *lpEnumData = (ENUMUSERDATA *)arg4; 323 FONTENUMPROCEXA proc = (FONTENUMPROCEXA)lpEnumData->userProc; 324 ENUMLOGFONTEXA logFont; 325 NEWTEXTMETRICEXA textM; 326 327 memcpy(&logFont, lpLogFont, sizeof(ENUMLOGFONTA)); 328 memset(logFont.elfScript, 0, sizeof(logFont.elfScript)); 329 memcpy(&textM.ntmetm, lpTextM, sizeof(textM.ntmetm)); 330 memset(&textM.ntmeFontSignature, 0, sizeof(textM.ntmeFontSignature)); 331 332 return proc(&logFont, &textM, arg3, lpEnumData->userData); 333 } 334 //****************************************************************************** 335 //TODO: FontEnumdwFlagsEx, script, font signature & NEWTEXTMETRICEX (last part) 336 //****************************************************************************** 337 int EXPENTRY_O32 EnumFontProcExW(LPENUMLOGFONTA lpLogFont, LPNEWTEXTMETRICA lpTextM, 338 DWORD arg3, LPARAM arg4) 339 { 340 ENUMUSERDATA *lpEnumData = (ENUMUSERDATA *)arg4; 341 FONTENUMPROCEXW proc = (FONTENUMPROCEXW)lpEnumData->userProc; 342 ENUMLOGFONTEXW LogFont; 343 NEWTEXTMETRICEXW textM; 344 int rc; 345 346 memcpy(&LogFont, lpLogFont, ((ULONG)&LogFont.elfLogFont.lfFaceName - (ULONG)&LogFont)); 347 memset(LogFont.elfScript, 0, sizeof(LogFont.elfScript)); 348 AsciiToUnicodeN(lpLogFont->elfLogFont.lfFaceName, LogFont.elfLogFont.lfFaceName, LF_FACESIZE-1); 349 AsciiToUnicodeN((char *) lpLogFont->elfFullName, LogFont.elfFullName, LF_FULLFACESIZE-1); 350 AsciiToUnicodeN((char *) lpLogFont->elfStyle, LogFont.elfStyle, LF_FACESIZE-1); 351 352 textM.ntmetm.tmHeight = lpTextM->tmHeight; 353 textM.ntmetm.tmAscent = lpTextM->tmAscent; 354 textM.ntmetm.tmDescent = lpTextM->tmDescent; 355 textM.ntmetm.tmInternalLeading = lpTextM->tmInternalLeading; 356 textM.ntmetm.tmExternalLeading = lpTextM->tmExternalLeading; 357 textM.ntmetm.tmAveCharWidth = lpTextM->tmAveCharWidth; 358 textM.ntmetm.tmMaxCharWidth = lpTextM->tmMaxCharWidth; 359 textM.ntmetm.tmWeight = lpTextM->tmWeight; 360 textM.ntmetm.tmOverhang = lpTextM->tmOverhang; 361 textM.ntmetm.tmDigitizedAspectX = lpTextM->tmDigitizedAspectX; 362 textM.ntmetm.tmDigitizedAspectY = lpTextM->tmDigitizedAspectY; 363 textM.ntmetm.tmFirstChar = lpTextM->tmFirstChar; 364 textM.ntmetm.tmLastChar = lpTextM->tmLastChar; 365 textM.ntmetm.tmDefaultChar = lpTextM->tmDefaultChar; 366 textM.ntmetm.tmBreakChar = lpTextM->tmBreakChar; 367 textM.ntmetm.tmItalic = lpTextM->tmItalic; 368 textM.ntmetm.tmUnderlined = lpTextM->tmUnderlined; 369 textM.ntmetm.tmStruckOut = lpTextM->tmStruckOut; 370 textM.ntmetm.tmPitchAndFamily = lpTextM->tmPitchAndFamily; 371 textM.ntmetm.tmCharSet = lpTextM->tmCharSet; 372 textM.ntmetm.ntmFlags = 0; 373 textM.ntmetm.ntmSizeEM = 0; 374 textM.ntmetm.ntmCellHeight = 0; 375 textM.ntmetm.ntmAvgWidth = 0; 376 memset(&textM.ntmeFontSignature, 0, sizeof(textM.ntmeFontSignature)); 377 378 return proc(&LogFont, &textM, arg3, lpEnumData->userData); 236 379 } 237 380 //****************************************************************************** … … 239 382 int WIN32API EnumFontsA( HDC arg1, LPCSTR arg2, FONTENUMPROCA arg3, LPARAM arg4) 240 383 { 241 dprintf(("GDI32: OS2EnumFontsA")); 242 // return O32_EnumFonts(arg1, arg2, arg3, arg4); 243 return 1; 244 } 245 //****************************************************************************** 246 //TODO: Callback 384 return EnumFontFamiliesA(arg1, arg2, arg3, arg4); 385 } 386 //****************************************************************************** 247 387 //****************************************************************************** 248 388 int WIN32API EnumFontsW( HDC arg1, LPCWSTR arg2, FONTENUMPROCW arg3, LPARAM arg4) 249 389 { 250 dprintf(("GDI32: OS2EnumFontsW - stub (1)")); 251 // NOTE: This will not work as is (needs UNICODE support) 252 // return O32_EnumFonts(arg1, arg2, arg3, arg4); 253 return 1; 390 return EnumFontFamiliesW(arg1, arg2, arg3, arg4); 254 391 } 255 392 //****************************************************************************** … … 260 397 LPARAM arg4) 261 398 { 399 ENUMUSERDATA enumData; 262 400 int rc; 263 401 264 dprintf(("GDI32: OS2EnumFontFamiliesA ")); 265 266 mutexProcWinA.enter(); 267 268 FontEnumProcWinA = arg3; 269 270 rc = O32_EnumFontFamilies(arg1, arg2, &EnumFontProcA, arg4); 271 272 mutexProcWinA.leave(); 402 dprintf(("GDI32: EnumFontFamiliesA %s", arg2)); 403 404 enumData.userProc = (DWORD)arg3; 405 enumData.userData = arg4; 406 407 rc = O32_EnumFontFamilies(arg1, arg2, &EnumFontProcA, (LPARAM)&enumData); 408 273 409 return rc; 274 410 } … … 280 416 LPARAM arg4) 281 417 { 418 ENUMUSERDATA enumData; 282 419 int rc; 283 420 char *astring = UnicodeToAsciiString((LPWSTR)arg2); 284 421 285 dprintf(("GDI32: OS2EnumFontFamiliesW ")); 286 287 mutexProcWinW.enter(); 288 289 FontEnumProcWinW = arg3; 290 291 rc = O32_EnumFontFamilies(arg1, astring, &EnumFontProcW, arg4); 292 293 mutexProcWinW.leave(); 422 dprintf(("GDI32: EnumFontFamiliesW %s", astring)); 423 424 enumData.userProc = (DWORD)arg3; 425 enumData.userData = arg4; 426 427 rc = O32_EnumFontFamilies(arg1, astring, &EnumFontProcW, (LPARAM)&enumData); 294 428 295 429 FreeAsciiString(astring); … … 300 434 INT WIN32API EnumFontFamiliesExA( HDC arg1, LPLOGFONTA arg2, FONTENUMPROCEXA arg3, LPARAM arg4, DWORD dwFlags) 301 435 { 302 dprintf(("GDI32: OS2EnumFontFamiliesExA, not implemented\n")); 303 return 0; 436 ENUMUSERDATA enumData; 437 int rc; 438 439 dprintf(("GDI32: EnumFontFamiliesExA not complete %s", arg2->lfFaceName)); 440 441 enumData.userProc = (DWORD)arg3; 442 enumData.userData = arg4; 443 enumData.dwFlags = dwFlags; 444 445 rc = O32_EnumFontFamilies(arg1, arg2->lfFaceName, &EnumFontProcExA, (LPARAM)&enumData); 446 447 return rc; 304 448 } 305 449 //****************************************************************************** … … 307 451 INT WIN32API EnumFontFamiliesExW( HDC arg1, LPLOGFONTW arg2, FONTENUMPROCEXW arg3, LPARAM arg4, DWORD dwFlags) 308 452 { 309 dprintf(("GDI32: OS2EnumFontFamiliesW, not implemented\n")); 310 // NOTE: This will not work as is (needs UNICODE support) 311 return 0; 453 ENUMUSERDATA enumData; 454 int rc; 455 char *astring = UnicodeToAsciiString((LPWSTR)arg2->lfFaceName); 456 457 dprintf(("GDI32: EnumFontFamiliesExW not complete %s", astring)); 458 459 enumData.userProc = (DWORD)arg3; 460 enumData.userData = arg4; 461 enumData.dwFlags = dwFlags; 462 463 rc = O32_EnumFontFamilies(arg1, astring, &EnumFontProcExW, (LPARAM)&enumData); 464 465 FreeAsciiString(astring); 466 return rc; 312 467 } 313 468 //****************************************************************************** … … 323 478 int WIN32API AddFontResourceA( LPCSTR arg1) 324 479 { 325 dprintf(("GDI32: OS2AddFontResourceA"));480 dprintf(("GDI32: AddFontResourceA")); 326 481 return O32_AddFontResource(arg1); 327 482 } … … 330 485 int WIN32API AddFontResourceW( LPCWSTR arg1) 331 486 { 332 dprintf(("GDI32: OS2AddFontResourceW STUB"));487 dprintf(("GDI32: AddFontResourceW STUB")); 333 488 // NOTE: This will not work as is (needs UNICODE support) 334 489 // return O32_AddFontResource(arg1); … … 339 494 BOOL WIN32API RemoveFontResourceA( LPCSTR arg1) 340 495 { 341 dprintf(("GDI32: OS2RemoveFontResourceA %s\n", arg1));496 dprintf(("GDI32: RemoveFontResourceA %s\n", arg1)); 342 497 return O32_RemoveFontResource(arg1); 343 498 } … … 349 504 BOOL rc; 350 505 351 dprintf(("GDI32: OS2RemoveFontResourceW\n"));506 dprintf(("GDI32: RemoveFontResourceW\n")); 352 507 rc = O32_RemoveFontResource(astring); 353 508 FreeAsciiString(astring); … … 436 591 return (0); 437 592 } 438 //****************************************************************************** 439 //****************************************************************************** 593 /************************************************************************* 594 * TranslateCharsetInfo [GDI32.382] 595 * 596 * Fills a CHARSETINFO structure for a character set, code page, or 597 * font. This allows making the correspondance between different labelings 598 * (character set, Windows, ANSI, and OEM codepages, and Unicode ranges) 599 * of the same encoding. 600 * 601 * Only one codepage will be set in lpCs->fs. If TCI_SRCFONTSIG is used, 602 * only one codepage should be set in *lpSrc. 603 * 604 * RETURNS 605 * TRUE on success, FALSE on failure. 606 * 607 */ 608 BOOL WIN32API TranslateCharsetInfo( 609 LPDWORD lpSrc, /* 610 if flags == TCI_SRCFONTSIG: pointer to fsCsb of a FONTSIGNATURE 611 if flags == TCI_SRCCHARSET: a character set value 612 if flags == TCI_SRCCODEPAGE: a code page value 613 */ 614 LPCHARSETINFO lpCs, /* structure to receive charset information */ 615 DWORD flags /* determines interpretation of lpSrc */ 616 ) { 617 int index = 0; 618 switch (flags) { 619 case TCI_SRCFONTSIG: 620 while (!(*lpSrc>>index & 0x0001) && index<MAXTCIINDEX) index++; 621 break; 622 case TCI_SRCCODEPAGE: 623 while ((UINT) (lpSrc) != FONT_tci[index].ciACP && index < MAXTCIINDEX) index++; 624 break; 625 case TCI_SRCCHARSET: 626 while ((UINT) (lpSrc) != FONT_tci[index].ciCharset && index < MAXTCIINDEX) index++; 627 break; 628 default: 629 return FALSE; 630 } 631 if (index >= MAXTCIINDEX || FONT_tci[index].ciCharset == DEFAULT_CHARSET) return FALSE; 632 memcpy(lpCs, &FONT_tci[index], sizeof(CHARSETINFO)); 633 return TRUE; 634 } 635 //****************************************************************************** 636 //****************************************************************************** -
trunk/src/gdi32/gdi32.cpp
r1686 r1703 1 /* $Id: gdi32.cpp,v 1.1 5 1999-11-10 14:15:23sandervl Exp $ */1 /* $Id: gdi32.cpp,v 1.16 1999-11-11 13:16:40 sandervl Exp $ */ 2 2 3 3 /* … … 477 477 int WIN32API AbortDoc( HDC arg1) 478 478 { 479 dprintf(("GDI32: OS2AbortDoc"));479 dprintf(("GDI32: AbortDoc")); 480 480 return O32_AbortDoc(arg1); 481 481 } … … 484 484 BOOL WIN32API AbortPath( HDC arg1) 485 485 { 486 dprintf(("GDI32: OS2AbortPath"));486 dprintf(("GDI32: AbortPath")); 487 487 return O32_AbortPath(arg1); 488 488 } … … 491 491 BOOL WIN32API AngleArc( HDC arg1, int arg2, int arg3, DWORD arg4, float arg5, float arg6) 492 492 { 493 dprintf(("GDI32: OS2AngleArc"));493 dprintf(("GDI32: AngleArc")); 494 494 return O32_AngleArc(arg1, arg2, arg3, arg4, arg5, arg6); 495 495 } … … 498 498 BOOL WIN32API AnimatePalette( HPALETTE arg1, UINT arg2, UINT arg3, const PALETTEENTRY * arg4) 499 499 { 500 dprintf(("GDI32: OS2AnimatePalette"));500 dprintf(("GDI32: AnimatePalette")); 501 501 return O32_AnimatePalette(arg1, arg2, arg3, arg4); 502 502 } … … 505 505 BOOL WIN32API Arc( HDC arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9) 506 506 { 507 dprintf(("GDI32: OS2Arc"));507 dprintf(("GDI32: Arc")); 508 508 return O32_Arc(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); 509 509 } … … 512 512 BOOL WIN32API ArcTo( HDC arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9) 513 513 { 514 dprintf(("GDI32: OS2ArcTo"));514 dprintf(("GDI32: ArcTo")); 515 515 return O32_ArcTo(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); 516 516 } … … 519 519 BOOL WIN32API BeginPath( HDC arg1) 520 520 { 521 dprintf(("GDI32: OS2BeginPath"));521 dprintf(("GDI32: BeginPath")); 522 522 return O32_BeginPath(arg1); 523 523 } … … 532 532 } 533 533 } 534 dprintf(("GDI32: OS2BitBlt to hdc %X from (%d,%d) to (%d,%d), (%d,%d) rop %X\n", hdcDest, arg7, arg8, arg2, arg3, arg4, arg5, arg9));534 dprintf(("GDI32: BitBlt to hdc %X from (%d,%d) to (%d,%d), (%d,%d) rop %X\n", hdcDest, arg7, arg8, arg2, arg3, arg4, arg5, arg9)); 535 535 return O32_BitBlt(hdcDest, arg2, arg3, arg4, arg5, hdcSrc, arg7, arg8, arg9); 536 536 } … … 539 539 BOOL WIN32API Chord( HDC arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9) 540 540 { 541 dprintf(("GDI32: OS2Chord"));541 dprintf(("GDI32: Chord")); 542 542 return O32_Chord(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); 543 543 } … … 546 546 HENHMETAFILE WIN32API CloseEnhMetaFile( HDC arg1) 547 547 { 548 dprintf(("GDI32: OS2CloseEnhMetaFile"));548 dprintf(("GDI32: CloseEnhMetaFile")); 549 549 return O32_CloseEnhMetaFile(arg1); 550 550 } … … 553 553 BOOL WIN32API CloseFigure( HDC arg1) 554 554 { 555 dprintf(("GDI32: OS2CloseFigure"));555 dprintf(("GDI32: CloseFigure")); 556 556 return O32_CloseFigure(arg1); 557 557 } … … 560 560 HMETAFILE WIN32API CloseMetaFile( HDC arg1) 561 561 { 562 dprintf(("GDI32: OS2CloseMetaFile"));562 dprintf(("GDI32: CloseMetaFile")); 563 563 return O32_CloseMetaFile(arg1); 564 564 } … … 567 567 int WIN32API CombineRgn( HRGN arg1, HRGN arg2, HRGN arg3, int arg4) 568 568 { 569 dprintf(("GDI32: OS2CombineRgn"));569 dprintf(("GDI32: CombineRgn")); 570 570 return O32_CombineRgn(arg1, arg2, arg3, arg4); 571 571 } … … 574 574 HENHMETAFILE WIN32API CopyEnhMetaFileA( HENHMETAFILE arg1, LPCSTR arg2) 575 575 { 576 dprintf(("GDI32: OS2CopyEnhMetaFileA"));576 dprintf(("GDI32: CopyEnhMetaFileA")); 577 577 return O32_CopyEnhMetaFile(arg1, arg2); 578 578 } … … 584 584 HENHMETAFILE rc; 585 585 586 dprintf(("GDI32: OS2CopyEnhMetaFileW"));586 dprintf(("GDI32: CopyEnhMetaFileW")); 587 587 rc = O32_CopyEnhMetaFile(arg1, astring); 588 588 FreeAsciiString(astring); … … 593 593 HMETAFILE WIN32API CopyMetaFileA( HMETAFILE arg1, LPCSTR arg2) 594 594 { 595 dprintf(("GDI32: OS2CopyMetaFileA"));595 dprintf(("GDI32: CopyMetaFileA")); 596 596 return O32_CopyMetaFile(arg1, arg2); 597 597 } … … 603 603 HMETAFILE rc; 604 604 605 dprintf(("GDI32: OS2CopyMetaFileW"));605 dprintf(("GDI32: CopyMetaFileW")); 606 606 rc = O32_CopyMetaFile(arg1, astring); 607 607 FreeAsciiString(astring); … … 616 616 617 617 rc = O32_CreateBitmap(nWidth, nHeight, cPlanes, cBitsPerPel, lpvBits); 618 dprintf(("GDI32: OS2CreateBitmap (%d,%d) bps %d returned %d\n", nWidth, nHeight, cBitsPerPel, rc));618 dprintf(("GDI32: CreateBitmap (%d,%d) bps %d returned %d\n", nWidth, nHeight, cBitsPerPel, rc)); 619 619 return(rc); 620 620 } … … 623 623 HBITMAP WIN32API CreateBitmapIndirect( const BITMAP * arg1) 624 624 { 625 dprintf(("GDI32: OS2CreateBitmapIndirect"));625 dprintf(("GDI32: CreateBitmapIndirect")); 626 626 return O32_CreateBitmapIndirect(arg1); 627 627 } … … 630 630 HBRUSH WIN32API CreateBrushIndirect( const LOGBRUSH * arg1) 631 631 { 632 dprintf(("GDI32: OS2CreateBrushIndirect"));632 dprintf(("GDI32: CreateBrushIndirect")); 633 633 return O32_CreateBrushIndirect((LPLOGBRUSH)arg1); 634 634 } … … 637 637 HDC WIN32API CreateDCA( LPCSTR arg1, LPCSTR arg2, LPCSTR arg3, const DEVMODEA * arg4) 638 638 { 639 dprintf(("GDI32: OS2CreateDCA"));639 dprintf(("GDI32: CreateDCA")); 640 640 return O32_CreateDC(arg1, arg2, arg3, arg4); 641 641 } … … 644 644 HDC WIN32API CreateDCW( LPCWSTR arg1, LPCWSTR arg2, LPCWSTR arg3, const DEVMODEW * arg4) 645 645 { 646 dprintf(("GDI32: OS2CreateDCW STUB"));646 dprintf(("GDI32: CreateDCW STUB")); 647 647 // NOTE: This will not work as is (needs UNICODE support) 648 648 // return O32_CreateDC(arg1, arg2, arg3, arg4); … … 653 653 HRGN WIN32API CreateEllipticRgn( int arg1, int arg2, int arg3, int arg4) 654 654 { 655 dprintf(("GDI32: OS2CreateEllipticRgn"));655 dprintf(("GDI32: CreateEllipticRgn")); 656 656 return O32_CreateEllipticRgn(arg1, arg2, arg3, arg4); 657 657 } … … 660 660 HRGN WIN32API CreateEllipticRgnIndirect( const RECT * arg1) 661 661 { 662 dprintf(("GDI32: OS2CreateEllipticRgnIndirect"));662 dprintf(("GDI32: CreateEllipticRgnIndirect")); 663 663 return O32_CreateEllipticRgnIndirect(arg1); 664 664 } … … 667 667 HENHMETAFILE WIN32API CreateEnhMetaFileA( HDC arg1, LPCSTR arg2, const RECT * arg3, LPCSTR arg4) 668 668 { 669 dprintf(("GDI32: OS2CreateEnhMetaFileA"));669 dprintf(("GDI32: CreateEnhMetaFileA")); 670 670 return O32_CreateEnhMetaFile(arg1, arg2, arg3, arg4); 671 671 } … … 674 674 HENHMETAFILE WIN32API CreateEnhMetaFileW( HDC arg1, LPCWSTR arg2, const RECT * arg3, LPCWSTR arg4) 675 675 { 676 dprintf(("GDI32: OS2CreateEnhMetaFileW STUB"));676 dprintf(("GDI32: CreateEnhMetaFileW STUB")); 677 677 // NOTE: This will not work as is (needs UNICODE support) 678 678 // return O32_CreateEnhMetaFile(arg1, arg2, arg3, arg4); … … 685 685 HBRUSH WIN32API CreateHatchBrush( int arg1, COLORREF arg2) 686 686 { 687 dprintf(("GDI32: OS2CreateHatchBrush"));687 dprintf(("GDI32: CreateHatchBrush")); 688 688 return O32_CreateHatchBrush(arg1, arg2); 689 689 } … … 692 692 HDC WIN32API CreateICA( LPCSTR arg1, LPCSTR arg2, LPCSTR arg3, const DEVMODEA * arg4) 693 693 { 694 dprintf(("GDI32: OS2CreateICA"));694 dprintf(("GDI32: CreateICA")); 695 695 return O32_CreateIC(arg1, arg2, arg3, arg4); 696 696 } … … 699 699 HDC WIN32API CreateICW( LPCWSTR arg1, LPCWSTR arg2, LPCWSTR arg3, const DEVMODEW * arg4) 700 700 { 701 dprintf(("GDI32: OS2CreateICW STUB"));701 dprintf(("GDI32: CreateICW STUB")); 702 702 // NOTE: This will not work as is (needs UNICODE support) 703 703 // return O32_CreateIC(arg1, arg2, arg3, arg4); … … 708 708 HDC WIN32API CreateMetaFileA( LPCSTR arg1) 709 709 { 710 dprintf(("GDI32: OS2CreateMetaFileA"));710 dprintf(("GDI32: CreateMetaFileA")); 711 711 return O32_CreateMetaFile(arg1); 712 712 } … … 718 718 HDC rc; 719 719 720 dprintf(("GDI32: OS2CreateMetaFileW"));720 dprintf(("GDI32: CreateMetaFileW")); 721 721 rc = O32_CreateMetaFile(astring); 722 722 FreeAsciiString(astring); … … 727 727 HRGN WIN32API CreateRectRgn( int arg1, int arg2, int arg3, int arg4) 728 728 { 729 dprintf(("GDI32: OS2CreateRectRgn"));729 dprintf(("GDI32: CreateRectRgn")); 730 730 return O32_CreateRectRgn(arg1, arg2, arg3, arg4); 731 731 } … … 734 734 HRGN WIN32API CreateRectRgnIndirect( const RECT * arg1) 735 735 { 736 dprintf(("GDI32: OS2CreateRectRgnIndirect"));736 dprintf(("GDI32: CreateRectRgnIndirect")); 737 737 return O32_CreateRectRgnIndirect(arg1); 738 738 } … … 741 741 HRGN WIN32API CreateRoundRectRgn( int arg1, int arg2, int arg3, int arg4, int arg5, int arg6) 742 742 { 743 dprintf(("GDI32: OS2CreateRoundRectRgn"));743 dprintf(("GDI32: CreateRoundRectRgn")); 744 744 return O32_CreateRoundRectRgn(arg1, arg2, arg3, arg4, arg5, arg6); 745 745 } … … 748 748 HBRUSH WIN32API CreateSolidBrush( COLORREF arg1) 749 749 { 750 dprintf(("GDI32: OS2CreateSolidBrush\n"));750 dprintf(("GDI32: CreateSolidBrush\n")); 751 751 return O32_CreateSolidBrush(arg1); 752 752 } … … 755 755 BOOL WIN32API DPtoLP( HDC arg1, PPOINT arg2, int arg3) 756 756 { 757 dprintf(("GDI32: OS2DPtoLP\n"));757 dprintf(("GDI32: DPtoLP\n")); 758 758 return O32_DPtoLP(arg1, arg2, arg3); 759 759 } … … 762 762 BOOL WIN32API DeleteEnhMetaFile( HENHMETAFILE arg1) 763 763 { 764 dprintf(("GDI32: OS2DeleteEnhMetaFile\n"));764 dprintf(("GDI32: DeleteEnhMetaFile\n")); 765 765 return O32_DeleteEnhMetaFile(arg1); 766 766 } … … 769 769 BOOL WIN32API DeleteMetaFile( HMETAFILE arg1) 770 770 { 771 dprintf(("GDI32: OS2DeleteMetaFile"));771 dprintf(("GDI32: DeleteMetaFile")); 772 772 return O32_DeleteMetaFile(arg1); 773 773 } … … 776 776 BOOL WIN32API Ellipse( HDC arg1, int arg2, int arg3, int arg4, int arg5) 777 777 { 778 dprintf(("GDI32: OS2Ellipse"));778 dprintf(("GDI32: Ellipse")); 779 779 return O32_Ellipse(arg1, arg2, arg3, arg4, arg5); 780 780 } … … 783 783 int WIN32API EndDoc( HDC arg1) 784 784 { 785 dprintf(("GDI32: OS2EndDoc"));785 dprintf(("GDI32: EndDoc")); 786 786 return O32_EndDoc(arg1); 787 787 } … … 790 790 int WIN32API EndPage( HDC arg1) 791 791 { 792 dprintf(("GDI32: OS2EndPage"));792 dprintf(("GDI32: EndPage")); 793 793 return O32_EndPage(arg1); 794 794 } … … 797 797 BOOL WIN32API EndPath( HDC arg1) 798 798 { 799 dprintf(("GDI32: OS2EndPath"));799 dprintf(("GDI32: EndPath")); 800 800 return O32_EndPath(arg1); 801 801 } … … 804 804 BOOL WIN32API EnumEnhMetaFile( HDC arg1, HENHMETAFILE arg2, ENHMFENUMPROC arg3, PVOID arg4, const RECT * arg5) 805 805 { 806 dprintf(("GDI32: OS2EnumEnhMetaFile DOESN'T WORK!"));806 dprintf(("GDI32: EnumEnhMetaFile DOESN'T WORK!")); 807 807 // return O32_EnumEnhMetaFile(arg1, arg2, arg3, arg4, arg5); 808 808 return 0; … … 810 810 //****************************************************************************** 811 811 //****************************************************************************** 812 POINT OS2ToWin32LineEnd(POINT startPt,INT nXEnd,INT nYEnd)812 POINT ToWin32LineEnd(POINT startPt,INT nXEnd,INT nYEnd) 813 813 { 814 814 POINT pt; … … 859 859 POINT oldPt,pt; 860 860 861 dprintf(("GDI32: OS2LineTo"));861 dprintf(("GDI32: LineTo")); 862 862 863 863 //CB: Open32 draws a pixel too much! 864 864 GetCurrentPositionEx(hdc,&oldPt); 865 pt = OS2ToWin32LineEnd(oldPt,nXEnd,nYEnd);865 pt = ToWin32LineEnd(oldPt,nXEnd,nYEnd); 866 866 867 867 BOOL rc; … … 881 881 BOOL WIN32API MoveToEx( HDC arg1, int arg2, int arg3, PPOINT arg4) 882 882 { 883 dprintf(("GDI32: OS2MoveToEx\n"));883 dprintf(("GDI32: MoveToEx\n")); 884 884 return O32_MoveToEx(arg1, arg2, arg3, arg4); 885 885 } … … 891 891 892 892 rc = O32_PatBlt(arg1, arg2, arg3, arg4, arg5, arg6); 893 dprintf(("GDI32: OS2PatBlt (%d,%d) (%d,%d) returned %d\n", arg2, arg3, arg4, arg5, rc));893 dprintf(("GDI32: PatBlt (%d,%d) (%d,%d) returned %d\n", arg2, arg3, arg4, arg5, rc)); 894 894 return(rc); 895 895 } … … 898 898 BOOL WIN32API Rectangle( HDC arg1, int arg2, int arg3, int arg4, int arg5) 899 899 { 900 dprintf(("GDI32: OS2Rectangle\n"));900 dprintf(("GDI32: Rectangle\n")); 901 901 return O32_Rectangle(arg1, arg2, arg3, arg4, arg5); 902 902 } … … 905 905 int WIN32API SetROP2( HDC arg1, int arg2) 906 906 { 907 dprintf(("GDI32: OS2SetROP2"));907 dprintf(("GDI32: SetROP2")); 908 908 return O32_SetROP2(arg1, arg2); 909 909 } … … 913 913 BOOL WIN32API EnumMetaFile( HDC arg1, HMETAFILE arg2, MFENUMPROC arg3, LPARAM arg4) 914 914 { 915 dprintf(("GDI32: OS2EnumMetaFile STUB"));915 dprintf(("GDI32: EnumMetaFile STUB")); 916 916 //calling convention differences 917 917 // return O32_EnumMetaFile(arg1, arg2, arg3, arg4); … … 922 922 int WIN32API EnumObjects( HDC arg1, int arg2, GOBJENUMPROC arg3, LPARAM arg4) 923 923 { 924 dprintf(("GDI32: OS2EnumObjects STUB"));924 dprintf(("GDI32: EnumObjects STUB")); 925 925 //calling convention differences 926 926 // return O32_EnumObjects(arg1, arg2, arg3, arg4); … … 931 931 BOOL WIN32API EqualRgn( HRGN arg1, HRGN arg2) 932 932 { 933 dprintf(("GDI32: OS2EqualRgn"));933 dprintf(("GDI32: EqualRgn")); 934 934 return O32_EqualRgn(arg1, arg2); 935 935 } … … 938 938 int WIN32API Escape( HDC arg1, int arg2, int arg3, LPCSTR arg4, PVOID arg5) 939 939 { 940 dprintf(("GDI32: OS2Escape"));940 dprintf(("GDI32: Escape")); 941 941 return O32_Escape(arg1, arg2, arg3, arg4, arg5); 942 942 } … … 945 945 int WIN32API ExcludeClipRect( HDC arg1, int arg2, int arg3, int arg4, int arg5) 946 946 { 947 dprintf(("GDI32: OS2ExcludeClipRect"));947 dprintf(("GDI32: ExcludeClipRect")); 948 948 return O32_ExcludeClipRect(arg1, arg2, arg3, arg4, arg5); 949 949 } … … 952 952 HPEN WIN32API ExtCreatePen( DWORD arg1, DWORD arg2, const LOGBRUSH * arg3, DWORD arg4, const DWORD * arg5) 953 953 { 954 dprintf(("GDI32: OS2ExtCreatePen"));954 dprintf(("GDI32: ExtCreatePen")); 955 955 return O32_ExtCreatePen(arg1, arg2, arg3, arg4, arg5); 956 956 } … … 959 959 HRGN WIN32API ExtCreateRegion( const XFORM * arg1, DWORD arg2, const RGNDATA * arg3) 960 960 { 961 dprintf(("GDI32: OS2ExtCreateRegion"));961 dprintf(("GDI32: ExtCreateRegion")); 962 962 return O32_ExtCreateRegion(arg1, arg2, arg3); 963 963 } … … 966 966 BOOL WIN32API ExtFloodFill( HDC arg1, int arg2, int arg3, COLORREF arg4, UINT arg5) 967 967 { 968 dprintf(("GDI32: OS2ExtFloodFill"));968 dprintf(("GDI32: ExtFloodFill")); 969 969 return O32_ExtFloodFill(arg1, arg2, arg3, arg4, arg5); 970 970 } … … 973 973 int WIN32API ExtSelectClipRgn( HDC arg1, HRGN arg2, int arg3) 974 974 { 975 dprintf(("GDI32: OS2ExtSelectClipRgn"));975 dprintf(("GDI32: ExtSelectClipRgn")); 976 976 return O32_ExtSelectClipRgn(arg1, arg2, arg3); 977 977 } … … 986 986 987 987 if(lprc) 988 dprintf(("GDI32: OS2ExtTextOutW (%d,%d) %X, (%d,%d)(%d,%d)\n", X, Y, fuOptions, lprc->left, lprc->top, lprc->right, lprc->bottom));989 else dprintf(("GDI32: OS2ExtTextOutW (%d,%d) %X\n", X, Y, fuOptions));988 dprintf(("GDI32: ExtTextOutW (%d,%d) %X, (%d,%d)(%d,%d)\n", X, Y, fuOptions, lprc->left, lprc->top, lprc->right, lprc->bottom)); 989 else dprintf(("GDI32: ExtTextOutW (%d,%d) %X\n", X, Y, fuOptions)); 990 990 rc = O32_ExtTextOut(hdc, X, Y, fuOptions, lprc, astring, cbCount, lpDx); 991 dprintf(("GDI32: OS2ExtTextOutW %s (%X) length %d rc %d\n", astring, lpString, cbCount, rc));991 dprintf(("GDI32: ExtTextOutW %s (%X) length %d rc %d\n", astring, lpString, cbCount, rc)); 992 992 FreeAsciiString(astring); 993 993 return(rc); … … 997 997 BOOL WIN32API FillPath( HDC arg1) 998 998 { 999 dprintf(("GDI32: OS2FillPath"));999 dprintf(("GDI32: FillPath")); 1000 1000 return O32_FillPath(arg1); 1001 1001 } … … 1004 1004 BOOL WIN32API FillRgn( HDC arg1, HRGN arg2, HBRUSH arg3) 1005 1005 { 1006 dprintf(("GDI32: OS2FillRgn"));1006 dprintf(("GDI32: FillRgn")); 1007 1007 return O32_FillRgn(arg1, arg2, arg3); 1008 1008 } … … 1011 1011 BOOL WIN32API FlattenPath( HDC arg1) 1012 1012 { 1013 dprintf(("GDI32: OS2FlattenPath"));1013 dprintf(("GDI32: FlattenPath")); 1014 1014 return O32_FlattenPath(arg1); 1015 1015 } … … 1018 1018 BOOL WIN32API FloodFill(HDC arg1, int arg2, int arg3, COLORREF arg4) 1019 1019 { 1020 dprintf(("GDI32: OS2FloodFill"));1020 dprintf(("GDI32: FloodFill")); 1021 1021 return O32_FloodFill(arg1, arg2, arg3, arg4); 1022 1022 } … … 1025 1025 BOOL WIN32API FrameRgn( HDC arg1, HRGN arg2, HBRUSH arg3, int arg4, int arg5) 1026 1026 { 1027 dprintf(("GDI32: OS2FrameRgn"));1027 dprintf(("GDI32: FrameRgn")); 1028 1028 return O32_FrameRgn(arg1, arg2, arg3, arg4, arg5); 1029 1029 } … … 1032 1032 int WIN32API GetArcDirection( HDC arg1) 1033 1033 { 1034 dprintf(("GDI32: OS2GetArcDirection"));1034 dprintf(("GDI32: GetArcDirection")); 1035 1035 return O32_GetArcDirection(arg1); 1036 1036 } … … 1039 1039 BOOL WIN32API GetAspectRatioFilterEx( HDC arg1, PSIZE arg2) 1040 1040 { 1041 dprintf(("GDI32: OS2GetAspectRatioFilterEx"));1041 dprintf(("GDI32: GetAspectRatioFilterEx")); 1042 1042 return O32_GetAspectRatioFilterEx(arg1, arg2); 1043 1043 } … … 1046 1046 LONG WIN32API GetBitmapBits( HBITMAP arg1, LONG arg2, PVOID arg3) 1047 1047 { 1048 dprintf(("GDI32: OS2GetBitmapBits"));1048 dprintf(("GDI32: GetBitmapBits")); 1049 1049 return O32_GetBitmapBits(arg1, arg2, arg3); 1050 1050 } … … 1053 1053 BOOL WIN32API GetBitmapDimensionEx( HBITMAP arg1, PSIZE arg2) 1054 1054 { 1055 dprintf(("GDI32: OS2GetBitmapDimensionEx"));1055 dprintf(("GDI32: GetBitmapDimensionEx")); 1056 1056 return O32_GetBitmapDimensionEx(arg1, arg2); 1057 1057 } … … 1060 1060 COLORREF WIN32API GetBkColor( HDC arg1) 1061 1061 { 1062 dprintf(("GDI32: OS2GetBkColor"));1062 dprintf(("GDI32: GetBkColor")); 1063 1063 return O32_GetBkColor(arg1); 1064 1064 } … … 1067 1067 int WIN32API GetBkMode( HDC arg1) 1068 1068 { 1069 dprintf(("GDI32: OS2GetBkMode"));1069 dprintf(("GDI32: GetBkMode")); 1070 1070 return O32_GetBkMode(arg1); 1071 1071 } … … 1074 1074 UINT WIN32API GetBoundsRect( HDC arg1, PRECT arg2, UINT arg3) 1075 1075 { 1076 dprintf(("GDI32: OS2GetBoundsRect"));1076 dprintf(("GDI32: GetBoundsRect")); 1077 1077 return O32_GetBoundsRect(arg1, arg2, arg3); 1078 1078 } … … 1081 1081 BOOL WIN32API GetBrushOrgEx( HDC arg1, PPOINT arg2) 1082 1082 { 1083 dprintf(("GDI32: OS2GetBrushOrgEx"));1083 dprintf(("GDI32: GetBrushOrgEx")); 1084 1084 return O32_GetBrushOrgEx(arg1, arg2); 1085 1085 } … … 1088 1088 BOOL WIN32API GetCharABCWidthsA( HDC arg1, UINT arg2, UINT arg3, LPABC arg4) 1089 1089 { 1090 dprintf(("GDI32: OS2GetCharABCWidthsA"));1090 dprintf(("GDI32: GetCharABCWidthsA")); 1091 1091 return O32_GetCharABCWidths(arg1, arg2, arg3, arg4); 1092 1092 } … … 1095 1095 BOOL WIN32API GetCharABCWidthsW( HDC arg1, UINT arg2, UINT arg3, LPABC arg4) 1096 1096 { 1097 dprintf(("GDI32: OS2GetCharABCWidthsW not properly implemented."));1097 dprintf(("GDI32: GetCharABCWidthsW not properly implemented.")); 1098 1098 // NOTE: This will not work as is (needs UNICODE support) 1099 1099 return O32_GetCharABCWidths(arg1, arg2, arg3, arg4); … … 1103 1103 BOOL WIN32API GetCharWidthA( HDC arg1, UINT arg2, UINT arg3, PINT arg4) 1104 1104 { 1105 dprintf(("GDI32: OS2GetCharWidthA"));1105 dprintf(("GDI32: GetCharWidthA")); 1106 1106 return O32_GetCharWidth(arg1, arg2, arg3, arg4); 1107 1107 } … … 1111 1111 BOOL WIN32API GetCharWidthW(HDC arg1, UINT iFirstChar, UINT iLastChar, PINT arg4) 1112 1112 { 1113 dprintf(("GDI32: OS2GetCharWidthW, not properly implemented"));1113 dprintf(("GDI32: GetCharWidthW, not properly implemented")); 1114 1114 return O32_GetCharWidth(arg1, iFirstChar, iLastChar, arg4); 1115 1115 } … … 1121 1121 1122 1122 rc = O32_GetClipBox(arg1, arg2); 1123 dprintf(("GDI32: OS2GetClipBox of %X returned %d\n", arg1, rc));1123 dprintf(("GDI32: GetClipBox of %X returned %d\n", arg1, rc)); 1124 1124 return(rc); 1125 1125 } … … 1128 1128 int WIN32API GetClipRgn( HDC arg1, HRGN arg2) 1129 1129 { 1130 dprintf(("GDI32: OS2GetClipRgn"));1130 dprintf(("GDI32: GetClipRgn")); 1131 1131 return O32_GetClipRgn(arg1, arg2); 1132 1132 } … … 1135 1135 HANDLE WIN32API GetCurrentObject( HDC arg1, UINT arg2) 1136 1136 { 1137 dprintf(("GDI32: OS2GetCurrentObject"));1137 dprintf(("GDI32: GetCurrentObject")); 1138 1138 return (HANDLE)O32_GetCurrentObject(arg1, arg2); 1139 1139 } … … 1142 1142 BOOL WIN32API GetCurrentPositionEx( HDC arg1, PPOINT arg2) 1143 1143 { 1144 dprintf(("GDI32: OS2GetCurrentPositionEx"));1144 dprintf(("GDI32: GetCurrentPositionEx")); 1145 1145 return O32_GetCurrentPositionEx(arg1, arg2); 1146 1146 } … … 1149 1149 int WIN32API GetDIBits( HDC arg1, HBITMAP arg2, UINT arg3, UINT arg4, void * arg5, PBITMAPINFO arg6, UINT arg7) 1150 1150 { 1151 dprintf(("GDI32: OS2GetDIBits"));1151 dprintf(("GDI32: GetDIBits")); 1152 1152 return O32_GetDIBits(arg1, arg2, arg3, arg4, arg5, arg6, arg7); 1153 1153 } … … 1159 1159 1160 1160 rc = O32_GetDeviceCaps(hdc, nIndex); 1161 dprintf(("GDI32: OS2GetDeviceCaps %X, %d returned %d\n", hdc, nIndex, rc));1161 dprintf(("GDI32: GetDeviceCaps %X, %d returned %d\n", hdc, nIndex, rc)); 1162 1162 //SvL: 13-9-'98: NT returns -1 when using 16 bits colors, NOT 65536! 1163 1163 if(nIndex == NUMCOLORS && rc > 256) … … 1169 1169 HENHMETAFILE WIN32API GetEnhMetaFileA( LPCSTR arg1) 1170 1170 { 1171 dprintf(("GDI32: OS2GetEnhMetaFileA"));1171 dprintf(("GDI32: GetEnhMetaFileA")); 1172 1172 return O32_GetEnhMetaFile(arg1); 1173 1173 } … … 1176 1176 UINT WIN32API GetEnhMetaFileBits( HENHMETAFILE arg1, UINT arg2, PBYTE arg3) 1177 1177 { 1178 dprintf(("GDI32: OS2GetEnhMetaFileBits"));1178 dprintf(("GDI32: GetEnhMetaFileBits")); 1179 1179 return O32_GetEnhMetaFileBits(arg1, arg2, arg3); 1180 1180 } … … 1183 1183 UINT WIN32API GetEnhMetaFileHeader( HENHMETAFILE arg1, UINT arg2, LPENHMETAHEADER arg3) 1184 1184 { 1185 dprintf(("GDI32: OS2GetEnhMetaFileHeader"));1185 dprintf(("GDI32: GetEnhMetaFileHeader")); 1186 1186 return O32_GetEnhMetaFileHeader(arg1, arg2, arg3); 1187 1187 } … … 1190 1190 UINT WIN32API GetEnhMetaFilePaletteEntries( HENHMETAFILE arg1, UINT arg2, PPALETTEENTRY arg3) 1191 1191 { 1192 dprintf(("GDI32: OS2GetEnhMetaFilePaletteEntries"));1192 dprintf(("GDI32: GetEnhMetaFilePaletteEntries")); 1193 1193 return O32_GetEnhMetaFilePaletteEntries(arg1, arg2, arg3); 1194 1194 } … … 1200 1200 HENHMETAFILE rc; 1201 1201 1202 dprintf(("GDI32: OS2GetEnhMetaFileW"));1202 dprintf(("GDI32: GetEnhMetaFileW")); 1203 1203 // NOTE: This will not work as is (needs UNICODE support) 1204 1204 rc = O32_GetEnhMetaFile(astring); … … 1210 1210 int WIN32API GetGraphicsMode(HDC arg1) 1211 1211 { 1212 dprintf(("GDI32: OS2GetGraphicsMode"));1212 dprintf(("GDI32: GetGraphicsMode")); 1213 1213 return O32_GetGraphicsMode(arg1); 1214 1214 } … … 1217 1217 DWORD WIN32API GetKerningPairsA( HDC arg1, DWORD arg2, LPKERNINGPAIR arg3) 1218 1218 { 1219 dprintf(("GDI32: OS2GetKerningPairsA"));1219 dprintf(("GDI32: GetKerningPairsA")); 1220 1220 return O32_GetKerningPairs(arg1, arg2, arg3); 1221 1221 } … … 1224 1224 DWORD WIN32API GetKerningPairsW( HDC arg1, DWORD arg2, LPKERNINGPAIR arg3) 1225 1225 { 1226 dprintf(("GDI32: OS2GetKerningPairsW"));1226 dprintf(("GDI32: GetKerningPairsW")); 1227 1227 // NOTE: This will not work as is (needs UNICODE support) 1228 1228 return O32_GetKerningPairs(arg1, arg2, arg3); … … 1232 1232 int WIN32API GetMapMode( HDC arg1) 1233 1233 { 1234 dprintf(("GDI32: OS2GetMapMode"));1234 dprintf(("GDI32: GetMapMode")); 1235 1235 return O32_GetMapMode(arg1); 1236 1236 } … … 1239 1239 HMETAFILE WIN32API GetMetaFileA( LPCSTR arg1) 1240 1240 { 1241 dprintf(("GDI32: OS2GetMetaFileA"));1241 dprintf(("GDI32: GetMetaFileA")); 1242 1242 return O32_GetMetaFile(arg1); 1243 1243 } … … 1246 1246 UINT WIN32API GetMetaFileBitsEx( HMETAFILE arg1, UINT arg2, LPVOID arg3) 1247 1247 { 1248 dprintf(("GDI32: OS2GetMetaFileBitsEx"));1248 dprintf(("GDI32: GetMetaFileBitsEx")); 1249 1249 return O32_GetMetaFileBitsEx(arg1, arg2, arg3); 1250 1250 } … … 1256 1256 HENHMETAFILE rc; 1257 1257 1258 dprintf(("GDI32: OS2GetMetaFileW"));1258 dprintf(("GDI32: GetMetaFileW")); 1259 1259 rc = O32_GetMetaFile(astring); 1260 1260 FreeAsciiString(astring); … … 1266 1266 BOOL WIN32API GetMiterLimit( HDC arg1, float * arg2) 1267 1267 { 1268 dprintf(("GDI32: OS2GetMiterLimit"));1268 dprintf(("GDI32: GetMiterLimit")); 1269 1269 return O32_GetMiterLimit(arg1, arg2); 1270 1270 } … … 1273 1273 COLORREF WIN32API GetNearestColor( HDC arg1, COLORREF arg2) 1274 1274 { 1275 dprintf(("GDI32: OS2GetNearestColor\n"));1275 dprintf(("GDI32: GetNearestColor\n")); 1276 1276 return O32_GetNearestColor(arg1, arg2); 1277 1277 } … … 1280 1280 UINT WIN32API GetNearestPaletteIndex( HPALETTE arg1, COLORREF arg2) 1281 1281 { 1282 dprintf(("GDI32: OS2GetNearestPaletteIndex\n"));1282 dprintf(("GDI32: GetNearestPaletteIndex\n")); 1283 1283 return O32_GetNearestPaletteIndex(arg1, arg2); 1284 1284 } … … 1287 1287 int WIN32API GetObjectW( HGDIOBJ arg1, int arg2, void * arg3) 1288 1288 { 1289 dprintf(("GDI32: OS2GetObjectW %X, %d %X\n", arg1, arg2, arg3));1289 dprintf(("GDI32: GetObjectW %X, %d %X\n", arg1, arg2, arg3)); 1290 1290 // NOTE: This will not work as is (needs UNICODE support) 1291 1291 return O32_GetObject(arg1, arg2, arg3); … … 1295 1295 UINT WIN32API GetOutlineTextMetricsA( HDC arg1, UINT arg2, LPOUTLINETEXTMETRICA arg3) 1296 1296 { 1297 dprintf(("GDI32: OS2GetOutlineTextMetricsA"));1297 dprintf(("GDI32: GetOutlineTextMetricsA")); 1298 1298 return O32_GetOutlineTextMetrics(arg1, arg2, arg3); 1299 1299 } … … 1302 1302 UINT WIN32API GetOutlineTextMetricsW( HDC arg1, UINT arg2, LPOUTLINETEXTMETRICW arg3) 1303 1303 { 1304 dprintf(("GDI32: OS2GetOutlineTextMetricsW STUB"));1304 dprintf(("GDI32: GetOutlineTextMetricsW STUB")); 1305 1305 // NOTE: This will not work as is (needs UNICODE support) 1306 1306 // return O32_GetOutlineTextMetrics(arg1, arg2, arg3); … … 1311 1311 UINT WIN32API GetPaletteEntries( HPALETTE arg1, UINT arg2, UINT arg3, PPALETTEENTRY arg4) 1312 1312 { 1313 dprintf(("GDI32: OS2GetPaletteEntries"));1313 dprintf(("GDI32: GetPaletteEntries")); 1314 1314 return O32_GetPaletteEntries(arg1, arg2, arg3, arg4); 1315 1315 } … … 1318 1318 INT WIN32API GetPath( HDC arg1, PPOINT arg2, PBYTE arg3, int arg4) 1319 1319 { 1320 dprintf(("GDI32: OS2GetPath"));1320 dprintf(("GDI32: GetPath")); 1321 1321 return O32_GetPath(arg1, arg2, arg3, arg4); 1322 1322 } … … 1325 1325 int WIN32API GetPolyFillMode( HDC arg1) 1326 1326 { 1327 dprintf(("GDI32: OS2GetPolyFillMode"));1327 dprintf(("GDI32: GetPolyFillMode")); 1328 1328 return O32_GetPolyFillMode(arg1); 1329 1329 } … … 1332 1332 int WIN32API GetROP2( HDC arg1) 1333 1333 { 1334 dprintf(("GDI32: OS2GetROP2"));1334 dprintf(("GDI32: GetROP2")); 1335 1335 return O32_GetROP2(arg1); 1336 1336 } … … 1339 1339 BOOL WIN32API GetRasterizerCaps(LPRASTERIZER_STATUS arg1, UINT arg2) 1340 1340 { 1341 dprintf(("GDI32: OS2GetRasterizerCaps"));1341 dprintf(("GDI32: GetRasterizerCaps")); 1342 1342 return O32_GetRasterizerCaps(arg1, arg2); 1343 1343 } … … 1346 1346 DWORD WIN32API GetRegionData( HRGN arg1, DWORD arg2, PRGNDATA arg3) 1347 1347 { 1348 dprintf(("GDI32: OS2GetRegionData"));1348 dprintf(("GDI32: GetRegionData")); 1349 1349 return O32_GetRegionData(arg1, arg2, arg3); 1350 1350 } … … 1353 1353 int WIN32API GetRgnBox( HRGN arg1, PRECT arg2) 1354 1354 { 1355 dprintf(("GDI32: OS2GetRgnBox"));1355 dprintf(("GDI32: GetRgnBox")); 1356 1356 return O32_GetRgnBox(arg1, arg2); 1357 1357 } … … 1360 1360 int WIN32API GetStretchBltMode( HDC arg1) 1361 1361 { 1362 dprintf(("GDI32: OS2GetStretchBltMode"));1362 dprintf(("GDI32: GetStretchBltMode")); 1363 1363 return O32_GetStretchBltMode(arg1); 1364 1364 } … … 1369 1369 UINT rc; 1370 1370 1371 dprintf(("GDI32: OS2GetSystemPaletteEntries start %d nr %d pal ptr %X", arg2, arg3, arg4));1371 dprintf(("GDI32: GetSystemPaletteEntries start %d nr %d pal ptr %X", arg2, arg3, arg4)); 1372 1372 rc = O32_GetSystemPaletteEntries(arg1, arg2, arg3, arg4); 1373 1373 dprintf((" GetSystemPaletteEntries returned %d", rc)); … … 1378 1378 UINT WIN32API GetTextAlign( HDC arg1) 1379 1379 { 1380 dprintf(("GDI32: OS2GetTextAlign"));1380 dprintf(("GDI32: GetTextAlign")); 1381 1381 return O32_GetTextAlign(arg1); 1382 1382 } … … 1385 1385 int WIN32API GetTextCharacterExtra( HDC arg1) 1386 1386 { 1387 dprintf(("GDI32: OS2GetTextCharacterExtra"));1387 dprintf(("GDI32: GetTextCharacterExtra")); 1388 1388 return O32_GetTextCharacterExtra(arg1); 1389 1389 } … … 1392 1392 COLORREF WIN32API GetTextColor( HDC arg1) 1393 1393 { 1394 dprintf(("GDI32: OS2GetTextColor"));1394 dprintf(("GDI32: GetTextColor")); 1395 1395 return O32_GetTextColor(arg1); 1396 1396 } … … 1399 1399 BOOL WIN32API GetTextExtentPoint32A( HDC arg1, LPCSTR arg2, int arg3, PSIZE lpSize) 1400 1400 { 1401 dprintf(("GDI32: OS2GetTextExtentPoint32A"));1401 dprintf(("GDI32: GetTextExtentPoint32A")); 1402 1402 lpSize->cx = lpSize->cy = 0; 1403 1403 return O32_GetTextExtentPoint32(arg1, arg2, arg3, lpSize); … … 1410 1410 BOOL rc; 1411 1411 1412 dprintf(("GDI32: OS2GetTextExtentPoint32W %s\n", astring));1412 dprintf(("GDI32: GetTextExtentPoint32W %s\n", astring)); 1413 1413 lpSize->cx = lpSize->cy = 0; 1414 1414 rc = O32_GetTextExtentPoint32(arg1, astring, arg3, lpSize); … … 1431 1431 cbString, 1432 1432 lpSize); 1433 dprintf(("GDI32: OS2GetTextExtentPointW %X %s (size %08xh) returned %d\n", hdc, astring, cbString, rc));1434 dprintf(("GDI32: OS2GetTextExtentPointW (%d,%d)\n", lpSize->cx, lpSize->cy));1433 dprintf(("GDI32: GetTextExtentPointW %X %s (size %08xh) returned %d\n", hdc, astring, cbString, rc)); 1434 dprintf(("GDI32: GetTextExtentPointW (%d,%d)\n", lpSize->cx, lpSize->cy)); 1435 1435 1436 1436 FreeAsciiString(astring); … … 1441 1441 int WIN32API GetTextFaceA( HDC arg1, int arg2, LPSTR arg3) 1442 1442 { 1443 dprintf(("GDI32: OS2GetTextFaceA"));1443 dprintf(("GDI32: GetTextFaceA")); 1444 1444 return O32_GetTextFace(arg1, arg2, arg3); 1445 1445 } … … 1451 1451 int rc; 1452 1452 1453 dprintf(("GDI32: OS2GetTextFaceW"));1453 dprintf(("GDI32: GetTextFaceW")); 1454 1454 rc = O32_GetTextFace(arg1, arg2, astring); 1455 1455 AsciiToUnicode(astring, arg3); … … 1463 1463 1464 1464 rc = O32_GetTextMetrics(arg1, arg2); 1465 dprintf(("GDI32: OS2GetTextMetricsA returned %d\n", rc));1465 dprintf(("GDI32: GetTextMetricsA returned %d\n", rc)); 1466 1466 return(rc); 1467 1467 } … … 1473 1473 TEXTMETRICA atm; 1474 1474 1475 dprintf(("GDI32: OS2GetTextMetricsW"));1475 dprintf(("GDI32: GetTextMetricsW")); 1476 1476 1477 1477 rc = O32_GetTextMetrics(arg1, &atm); … … 1502 1502 BOOL WIN32API GetViewportExtEx( HDC arg1, PSIZE arg2) 1503 1503 { 1504 dprintf(("GDI32: OS2GetViewportExtEx"));1504 dprintf(("GDI32: GetViewportExtEx")); 1505 1505 return O32_GetViewportExtEx(arg1, arg2); 1506 1506 } … … 1509 1509 BOOL WIN32API GetViewportOrgEx( HDC arg1, PPOINT arg2) 1510 1510 { 1511 dprintf(("GDI32: OS2GetViewportOrgEx"));1511 dprintf(("GDI32: GetViewportOrgEx")); 1512 1512 return O32_GetViewportOrgEx(arg1, arg2); 1513 1513 } … … 1516 1516 UINT WIN32API GetWinMetaFileBits( HENHMETAFILE arg1, UINT arg2, PBYTE arg3, int arg4, HDC arg5) 1517 1517 { 1518 dprintf(("GDI32: OS2GetWinMetaFileBits"));1518 dprintf(("GDI32: GetWinMetaFileBits")); 1519 1519 return O32_GetWinMetaFileBits(arg1, arg2, arg3, arg4, arg5); 1520 1520 } … … 1523 1523 BOOL WIN32API GetWindowOrgEx( HDC arg1, PPOINT arg2) 1524 1524 { 1525 dprintf(("GDI32: OS2GetWindowOrgEx"));1525 dprintf(("GDI32: GetWindowOrgEx")); 1526 1526 return O32_GetWindowOrgEx(arg1, arg2); 1527 1527 } … … 1530 1530 BOOL WIN32API GetWorldTransform( HDC arg1, LPXFORM arg2) 1531 1531 { 1532 dprintf(("GDI32: OS2GetWorldTransform"));1532 dprintf(("GDI32: GetWorldTransform")); 1533 1533 return O32_GetWorldTransform(arg1, arg2); 1534 1534 } … … 1540 1540 1541 1541 rc = O32_IntersectClipRect(arg1, arg2, arg3, arg4, arg5); 1542 dprintf(("GDI32: OS2IntersectClipRect returned %d\n", rc));1542 dprintf(("GDI32: IntersectClipRect returned %d\n", rc)); 1543 1543 return(rc); 1544 1544 } … … 1547 1547 BOOL WIN32API InvertRgn( HDC arg1, HRGN arg2) 1548 1548 { 1549 dprintf(("GDI32: OS2InvertRgn"));1549 dprintf(("GDI32: InvertRgn")); 1550 1550 return O32_InvertRgn(arg1, arg2); 1551 1551 } … … 1554 1554 BOOL WIN32API LPtoDP( HDC arg1, PPOINT arg2, int arg3) 1555 1555 { 1556 dprintf(("GDI32: OS2LPtoDP"));1556 dprintf(("GDI32: LPtoDP")); 1557 1557 return O32_LPtoDP(arg1, arg2, arg3); 1558 1558 } … … 1565 1565 POINT startPt,endPt; 1566 1566 1567 dprintf(("GDI32: OS2LineDDA\n"));1567 dprintf(("GDI32: LineDDA\n")); 1568 1568 1569 1569 //CB: don't know if Open32 reports the last pixel, but all other line functions do 1570 1570 startPt.x = nXStart; 1571 1571 startPt.y = nYStart; 1572 endPt = OS2ToWin32LineEnd(startPt,nXEnd,nYEnd);1572 endPt = ToWin32LineEnd(startPt,nXEnd,nYEnd); 1573 1573 1574 1574 rc = O32_LineDDA(startPt.x,startPt.y,endPt.x,endPt.y,callback->GetOS2Callback(),(LPARAM)callback); … … 1581 1581 BOOL WIN32API MaskBlt( HDC arg1, int arg2, int arg3, int arg4, int arg5, HDC arg6, int arg7, int arg8, HBITMAP arg9, int arg10, int arg11, DWORD arg12) 1582 1582 { 1583 dprintf(("GDI32: OS2MaskBlt"));1583 dprintf(("GDI32: MaskBlt")); 1584 1584 return O32_MaskBlt(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); 1585 1585 } … … 1588 1588 BOOL WIN32API ModifyWorldTransform( HDC arg1, const XFORM *arg2, DWORD arg3) 1589 1589 { 1590 dprintf(("GDI32: OS2ModifyWorldTransform"));1590 dprintf(("GDI32: ModifyWorldTransform")); 1591 1591 return O32_ModifyWorldTransform(arg1, (LPXFORM)arg2, arg3); 1592 1592 } … … 1595 1595 int WIN32API OffsetClipRgn( HDC arg1, int arg2, int arg3) 1596 1596 { 1597 dprintf(("GDI32: O S2OffsetClipRgn"));1597 dprintf(("GDI32: OffsetClipRgn")); 1598 1598 return O32_OffsetClipRgn(arg1, arg2, arg3); 1599 1599 } … … 1602 1602 int WIN32API OffsetRgn( HRGN arg1, int arg2, int arg3) 1603 1603 { 1604 dprintf(("GDI32: O S2OffsetRgn"));1604 dprintf(("GDI32: OffsetRgn")); 1605 1605 return O32_OffsetRgn(arg1, arg2, arg3); 1606 1606 } … … 1609 1609 BOOL WIN32API OffsetViewportOrgEx( HDC arg1, int arg2, int arg3, PPOINT arg4) 1610 1610 { 1611 dprintf(("GDI32: O S2OffsetViewportOrgEx"));1611 dprintf(("GDI32: OffsetViewportOrgEx")); 1612 1612 return O32_OffsetViewportOrgEx(arg1, arg2, arg3, arg4); 1613 1613 } … … 1616 1616 BOOL WIN32API OffsetWindowOrgEx( HDC arg1, int arg2, int arg3, PPOINT arg4) 1617 1617 { 1618 dprintf(("GDI32: O S2OffsetWindowOrgEx"));1618 dprintf(("GDI32: OffsetWindowOrgEx")); 1619 1619 return O32_OffsetWindowOrgEx(arg1, arg2, arg3, arg4); 1620 1620 } … … 1623 1623 BOOL WIN32API PaintRgn( HDC arg1, HRGN arg2) 1624 1624 { 1625 dprintf(("GDI32: OS2PaintRgn"));1625 dprintf(("GDI32: PaintRgn")); 1626 1626 return O32_PaintRgn(arg1, arg2); 1627 1627 } … … 1630 1630 HRGN WIN32API PathToRegion( HDC arg1) 1631 1631 { 1632 dprintf(("GDI32: OS2PathToRegion"));1632 dprintf(("GDI32: PathToRegion")); 1633 1633 return O32_PathToRegion(arg1); 1634 1634 } … … 1639 1639 int nYRadial2) 1640 1640 { 1641 dprintf(("GDI32: OS2Pie"));1641 dprintf(("GDI32: Pie")); 1642 1642 //CB: bug in O32_Pie 1643 1643 if (nXRadial1 == nXRadial2 && nYRadial1 == nYRadial2) … … 1650 1650 BOOL WIN32API PlayEnhMetaFile( HDC arg1, HENHMETAFILE arg2, const RECT * arg3) 1651 1651 { 1652 dprintf(("GDI32: OS2PlayEnhMetaFile"));1652 dprintf(("GDI32: PlayEnhMetaFile")); 1653 1653 return O32_PlayEnhMetaFile(arg1, arg2, arg3); 1654 1654 } … … 1657 1657 BOOL WIN32API PlayMetaFile( HDC arg1, HMETAFILE arg2) 1658 1658 { 1659 dprintf(("GDI32: OS2PlayMetaFile"));1659 dprintf(("GDI32: PlayMetaFile")); 1660 1660 return O32_PlayMetaFile(arg1, arg2); 1661 1661 } … … 1664 1664 BOOL WIN32API PlayMetaFileRecord( HDC arg1, LPHANDLETABLE arg2, LPMETARECORD arg3, UINT arg4) 1665 1665 { 1666 dprintf(("GDI32: OS2PlayMetaFileRecord"));1666 dprintf(("GDI32: PlayMetaFileRecord")); 1667 1667 return O32_PlayMetaFileRecord(arg1, arg2, arg3, (int)arg4); 1668 1668 } … … 1671 1671 BOOL WIN32API PolyBezier( HDC arg1, const POINT * arg2, DWORD arg3) 1672 1672 { 1673 dprintf(("GDI32: OS2PolyBezier"));1673 dprintf(("GDI32: PolyBezier")); 1674 1674 return O32_PolyBezier(arg1, arg2, (int)arg3); 1675 1675 } … … 1678 1678 BOOL WIN32API PolyBezierTo( HDC arg1, const POINT * arg2, DWORD arg3) 1679 1679 { 1680 dprintf(("GDI32: OS2PolyBezierTo"));1680 dprintf(("GDI32: PolyBezierTo")); 1681 1681 return O32_PolyBezierTo(arg1, arg2, arg3); 1682 1682 } … … 1685 1685 BOOL WIN32API PolyDraw( HDC arg1, const POINT * arg2, const BYTE * arg3, DWORD arg4) 1686 1686 { 1687 dprintf(("GDI32: OS2PolyDraw"));1687 dprintf(("GDI32: PolyDraw")); 1688 1688 return O32_PolyDraw(arg1, arg2, arg3, arg4); 1689 1689 } … … 1692 1692 BOOL WIN32API PolyPolygon( HDC arg1, const POINT * arg2, const INT * arg3, UINT arg4) 1693 1693 { 1694 dprintf(("GDI32: OS2PolyPolygon"));1694 dprintf(("GDI32: PolyPolygon")); 1695 1695 return O32_PolyPolygon(arg1, arg2, arg3, arg4); 1696 1696 } … … 1699 1699 BOOL WIN32API PolyPolyline( HDC hdc, const POINT * lppt, const DWORD * lpdwPolyPoints, DWORD cCount) 1700 1700 { 1701 dprintf(("GDI32: OS2PolyPolyline"));1701 dprintf(("GDI32: PolyPolyline")); 1702 1702 1703 1703 return O32_PolyPolyline(hdc,lppt,lpdwPolyPoints,cCount); … … 1707 1707 BOOL WIN32API Polygon( HDC arg1, const POINT * arg2, int arg3) 1708 1708 { 1709 dprintf(("GDI32: OS2Polygon"));1709 dprintf(("GDI32: Polygon")); 1710 1710 return O32_Polygon(arg1, arg2, arg3); 1711 1711 } … … 1714 1714 BOOL WIN32API Polyline( HDC hdc, const POINT *lppt, int cPoints) 1715 1715 { 1716 dprintf(("GDI32: OS2Polyline"));1716 dprintf(("GDI32: Polyline")); 1717 1717 1718 1718 if (cPoints == 0) return TRUE; … … 1736 1736 BOOL rc; 1737 1737 1738 points[cPoints-1] = OS2ToWin32LineEnd(lppt[cPoints-2],lastPt.x,lastPt.y);1738 points[cPoints-1] = ToWin32LineEnd(lppt[cPoints-2],lastPt.x,lastPt.y); 1739 1739 rc = O32_Polyline(hdc,lppt,cPoints); 1740 1740 points[cPoints-1] = lastPt; … … 1746 1746 BOOL WIN32API PolylineTo( HDC hdc, const POINT * lppt, DWORD cCount) 1747 1747 { 1748 dprintf(("GDI32: OS2PolylineTo"));1748 dprintf(("GDI32: PolylineTo")); 1749 1749 1750 1750 if (cCount == 0) return TRUE; … … 1762 1762 BOOL rc; 1763 1763 1764 points[cCount-1] = OS2ToWin32LineEnd(lppt[cCount-2],lastPt.x,lastPt.y);1764 points[cCount-1] = ToWin32LineEnd(lppt[cCount-2],lastPt.x,lastPt.y); 1765 1765 rc = O32_PolylineTo(hdc,lppt,cCount); 1766 1766 points[cCount-1] = lastPt; … … 1773 1773 BOOL WIN32API PtInRegion( HRGN arg1, int arg2, int arg3) 1774 1774 { 1775 dprintf(("GDI32: OS2PtInRegion"));1775 dprintf(("GDI32: PtInRegion")); 1776 1776 return O32_PtInRegion(arg1, arg2, arg3); 1777 1777 } … … 1780 1780 BOOL WIN32API PtVisible( HDC arg1, int arg2, int arg3) 1781 1781 { 1782 dprintf(("GDI32: OS2PtVisible"));1782 dprintf(("GDI32: PtVisible")); 1783 1783 return O32_PtVisible(arg1, arg2, arg3); 1784 1784 } … … 1787 1787 BOOL WIN32API RectInRegion( HRGN arg1, const RECT * arg2) 1788 1788 { 1789 dprintf(("GDI32: OS2RectInRegion"));1789 dprintf(("GDI32: RectInRegion")); 1790 1790 return O32_RectInRegion(arg1, arg2); 1791 1791 } … … 1794 1794 BOOL WIN32API RectVisible( HDC arg1, const RECT * arg2) 1795 1795 { 1796 dprintf(("GDI32: OS2RectVisible\n"));1796 dprintf(("GDI32: RectVisible\n")); 1797 1797 return O32_RectVisible(arg1, arg2); 1798 1798 } … … 1801 1801 HDC WIN32API ResetDCA( HDC arg1, const DEVMODEA * arg2) 1802 1802 { 1803 dprintf(("GDI32: OS2ResetDCA\n"));1803 dprintf(("GDI32: ResetDCA\n")); 1804 1804 return (HDC)O32_ResetDC(arg1, arg2); 1805 1805 } … … 1808 1808 HDC WIN32API ResetDCW( HDC arg1, const DEVMODEW * arg2) 1809 1809 { 1810 dprintf(("GDI32: OS2ResetDCW\n"));1810 dprintf(("GDI32: ResetDCW\n")); 1811 1811 // NOTE: This will not work as is (needs UNICODE support) 1812 1812 return (HDC)O32_ResetDC(arg1, (const DEVMODEA *)arg2); … … 1816 1816 BOOL WIN32API ResizePalette( HPALETTE arg1, UINT arg2) 1817 1817 { 1818 dprintf(("GDI32: OS2ResizePalette\n"));1818 dprintf(("GDI32: ResizePalette\n")); 1819 1819 return O32_ResizePalette(arg1, arg2); 1820 1820 } … … 1823 1823 BOOL WIN32API RestoreDC( HDC arg1, int arg2) 1824 1824 { 1825 dprintf(("GDI32: OS2RestoreDC\n"));1825 dprintf(("GDI32: RestoreDC\n")); 1826 1826 return O32_RestoreDC(arg1, arg2); 1827 1827 } … … 1830 1830 BOOL WIN32API RoundRect( HDC arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7) 1831 1831 { 1832 dprintf(("GDI32: OS2RoundRect"));1832 dprintf(("GDI32: RoundRect")); 1833 1833 return O32_RoundRect(arg1, arg2, arg3, arg4, arg5, arg6, arg7); 1834 1834 } … … 1837 1837 int WIN32API SaveDC( HDC arg1) 1838 1838 { 1839 dprintf(("GDI32: OS2SaveDC"));1839 dprintf(("GDI32: SaveDC")); 1840 1840 return O32_SaveDC(arg1); 1841 1841 } … … 1844 1844 BOOL WIN32API ScaleViewportExtEx( HDC arg1, int arg2, int arg3, int arg4, int arg5, PSIZE arg6) 1845 1845 { 1846 dprintf(("GDI32: OS2ScaleViewportExtEx"));1846 dprintf(("GDI32: ScaleViewportExtEx")); 1847 1847 return O32_ScaleViewportExtEx(arg1, arg2, arg3, arg4, arg5, arg6); 1848 1848 } … … 1851 1851 BOOL WIN32API ScaleWindowExtEx( HDC arg1, int arg2, int arg3, int arg4, int arg5, PSIZE arg6) 1852 1852 { 1853 dprintf(("GDI32: OS2ScaleWindowExtEx"));1853 dprintf(("GDI32: ScaleWindowExtEx")); 1854 1854 return O32_ScaleWindowExtEx(arg1, arg2, arg3, arg4, arg5, arg6); 1855 1855 } … … 1858 1858 int WIN32API SelectClipRgn( HDC arg1, HRGN arg2) 1859 1859 { 1860 dprintf(("GDI32: OS2SelectClipRgn"));1860 dprintf(("GDI32: SelectClipRgn")); 1861 1861 return O32_SelectClipRgn(arg1, arg2); 1862 1862 } … … 1865 1865 int WIN32API SetArcDirection( HDC arg1, int arg2) 1866 1866 { 1867 dprintf(("GDI32: OS2SetArcDirection"));1867 dprintf(("GDI32: SetArcDirection")); 1868 1868 return O32_SetArcDirection(arg1, arg2); 1869 1869 } … … 1872 1872 LONG WIN32API SetBitmapBits( HBITMAP arg1, LONG arg2, const VOID * arg3) 1873 1873 { 1874 dprintf(("GDI32: OS2SetBitmapBits"));1874 dprintf(("GDI32: SetBitmapBits")); 1875 1875 return O32_SetBitmapBits(arg1, (DWORD)arg2, arg3); 1876 1876 } … … 1879 1879 BOOL WIN32API SetBitmapDimensionEx( HBITMAP arg1, int arg2, int arg3, PSIZE arg4) 1880 1880 { 1881 dprintf(("GDI32: OS2SetBitmapDimensionEx"));1881 dprintf(("GDI32: SetBitmapDimensionEx")); 1882 1882 return O32_SetBitmapDimensionEx(arg1, arg2, arg3, arg4); 1883 1883 } … … 1886 1886 UINT WIN32API SetBoundsRect( HDC arg1, const RECT * arg2, UINT arg3) 1887 1887 { 1888 dprintf(("GDI32: OS2SetBoundsRect"));1888 dprintf(("GDI32: SetBoundsRect")); 1889 1889 return O32_SetBoundsRect(arg1, arg2, arg3); 1890 1890 } … … 1896 1896 1897 1897 rc = O32_SetBrushOrgEx(arg1, arg2, arg3, arg4); 1898 dprintf(("GDI32: OS2SetBrushOrgEx returned %d\n", rc));1898 dprintf(("GDI32: SetBrushOrgEx returned %d\n", rc)); 1899 1899 return(rc); 1900 1900 } … … 1903 1903 int WIN32API SetDIBits( HDC arg1, HBITMAP arg2, UINT arg3, UINT arg4, const VOID * arg5, const BITMAPINFO * arg6, UINT arg7) 1904 1904 { 1905 dprintf(("GDI32: OS2SetDIBits\n"));1905 dprintf(("GDI32: SetDIBits\n")); 1906 1906 return O32_SetDIBits(arg1, arg2, arg3, arg4, arg5, arg6, arg7); 1907 1907 } … … 1913 1913 char *ptr; 1914 1914 1915 dprintf(("GDI32: OS2SetDIBitsToDevice hdc:%X xDest:%d yDest:%d, cx:%d, cy:%d, xSrc:%d, ySrc:%d, startscan:%d, lines:%d, bits:%X, info%X, coloruse:%d",1915 dprintf(("GDI32: SetDIBitsToDevice hdc:%X xDest:%d yDest:%d, cx:%d, cy:%d, xSrc:%d, ySrc:%d, startscan:%d, lines:%d, bits:%X, info%X, coloruse:%d", 1916 1916 hdc, xDest, yDest, cx, cy, xSrc, ySrc, startscan, lines, (LPVOID) bits, (PBITMAPINFO)info, coloruse)); 1917 1917 … … 1938 1938 HENHMETAFILE WIN32API SetEnhMetaFileBits( UINT arg1, const BYTE * arg2) 1939 1939 { 1940 dprintf(("GDI32: OS2SetEnhMetaFileBits"));1940 dprintf(("GDI32: SetEnhMetaFileBits")); 1941 1941 return O32_SetEnhMetaFileBits(arg1, arg2); 1942 1942 } … … 1945 1945 int WIN32API SetGraphicsMode(HDC arg1, int arg2) 1946 1946 { 1947 dprintf(("GDI32: OS2SetGraphicsMode"));1947 dprintf(("GDI32: SetGraphicsMode")); 1948 1948 return O32_SetGraphicsMode(arg1, arg2); 1949 1949 } … … 1952 1952 int WIN32API SetMapMode( HDC arg1, int arg2) 1953 1953 { 1954 dprintf(("GDI32: OS2SetMapMode"));1954 dprintf(("GDI32: SetMapMode")); 1955 1955 return O32_SetMapMode(arg1, arg2); 1956 1956 } … … 1959 1959 DWORD WIN32API SetMapperFlags( HDC arg1, DWORD arg2) 1960 1960 { 1961 dprintf(("GDI32: OS2SetMapperFlags"));1961 dprintf(("GDI32: SetMapperFlags")); 1962 1962 return O32_SetMapperFlags(arg1, arg2); 1963 1963 } … … 1966 1966 HMETAFILE WIN32API SetMetaFileBitsEx( UINT arg1, const BYTE * arg2) 1967 1967 { 1968 dprintf(("GDI32: OS2SetMetaFileBitsEx"));1968 dprintf(("GDI32: SetMetaFileBitsEx")); 1969 1969 return O32_SetMetaFileBitsEx(arg1, (PBYTE)arg2); 1970 1970 } … … 1973 1973 BOOL WIN32API SetMiterLimit( HDC arg1, float arg2, float * arg3) 1974 1974 { 1975 dprintf(("GDI32: OS2SetMiterLimit"));1975 dprintf(("GDI32: SetMiterLimit")); 1976 1976 return O32_SetMiterLimit(arg1, arg2, arg3); 1977 1977 } … … 1980 1980 UINT WIN32API SetPaletteEntries( HPALETTE arg1, UINT arg2, UINT arg3, PALETTEENTRY * arg4) 1981 1981 { 1982 dprintf(("GDI32: OS2SetPaletteEntries"));1982 dprintf(("GDI32: SetPaletteEntries")); 1983 1983 return O32_SetPaletteEntries(arg1, arg2, arg3, (const PALETTEENTRY *)arg4); 1984 1984 } … … 1987 1987 int WIN32API SetPolyFillMode( HDC arg1, int arg2) 1988 1988 { 1989 dprintf(("GDI32: OS2SetPolyFillMode"));1989 dprintf(("GDI32: SetPolyFillMode")); 1990 1990 return O32_SetPolyFillMode(arg1, arg2); 1991 1991 } … … 1994 1994 BOOL WIN32API SetRectRgn( HRGN arg1, int arg2, int arg3, int arg4, int arg5) 1995 1995 { 1996 dprintf(("GDI32: OS2SetRectRgn"));1996 dprintf(("GDI32: SetRectRgn")); 1997 1997 return O32_SetRectRgn(arg1, arg2, arg3, arg4, arg5); 1998 1998 } … … 2001 2001 UINT WIN32API SetTextAlign( HDC arg1, UINT arg2) 2002 2002 { 2003 dprintf(("GDI32: OS2SetTextAlign"));2003 dprintf(("GDI32: SetTextAlign")); 2004 2004 return O32_SetTextAlign(arg1, arg2); 2005 2005 } … … 2008 2008 int WIN32API SetTextCharacterExtra( HDC arg1, int arg2) 2009 2009 { 2010 dprintf(("GDI32: OS2SetTextCharacterExtra"));2010 dprintf(("GDI32: SetTextCharacterExtra")); 2011 2011 return O32_SetTextCharacterExtra(arg1, arg2); 2012 2012 } … … 2015 2015 BOOL WIN32API SetTextJustification( HDC arg1, int arg2, int arg3) 2016 2016 { 2017 dprintf(("GDI32: OS2SetTextJustification"));2017 dprintf(("GDI32: SetTextJustification")); 2018 2018 return O32_SetTextJustification(arg1, arg2, arg3); 2019 2019 } … … 2022 2022 BOOL WIN32API SetViewportExtEx( HDC arg1, int arg2, int arg3, PSIZE arg4) 2023 2023 { 2024 dprintf(("GDI32: OS2SetViewportExtEx"));2024 dprintf(("GDI32: SetViewportExtEx")); 2025 2025 return O32_SetViewportExtEx(arg1, arg2, arg3, arg4); 2026 2026 } … … 2029 2029 BOOL WIN32API SetViewportOrgEx( HDC arg1, int arg2, int arg3, PPOINT arg4) 2030 2030 { 2031 dprintf(("GDI32: OS2SetViewportOrgEx"));2031 dprintf(("GDI32: SetViewportOrgEx")); 2032 2032 return O32_SetViewportOrgEx(arg1, arg2, arg3, arg4); 2033 2033 } … … 2036 2036 HENHMETAFILE WIN32API SetWinMetaFileBits( UINT arg1, const BYTE * arg2, HDC arg3, const METAFILEPICT * arg4) 2037 2037 { 2038 dprintf(("GDI32: OS2SetWinMetaFileBits"));2038 dprintf(("GDI32: SetWinMetaFileBits")); 2039 2039 return O32_SetWinMetaFileBits(arg1, arg2, arg3, arg4); 2040 2040 } … … 2043 2043 BOOL WIN32API SetWindowExtEx( HDC arg1, int arg2, int arg3, PSIZE arg4) 2044 2044 { 2045 dprintf(("GDI32: OS2SetWindowExtEx"));2045 dprintf(("GDI32: SetWindowExtEx")); 2046 2046 return O32_SetWindowExtEx(arg1, arg2, arg3, arg4); 2047 2047 } … … 2050 2050 BOOL WIN32API SetWindowOrgEx( HDC arg1, int arg2, int arg3, PPOINT arg4) 2051 2051 { 2052 dprintf(("GDI32: OS2SetWindowOrgEx"));2052 dprintf(("GDI32: SetWindowOrgEx")); 2053 2053 return O32_SetWindowOrgEx(arg1, arg2, arg3, arg4); 2054 2054 } … … 2057 2057 BOOL WIN32API SetWorldTransform( HDC arg1, const XFORM *arg2) 2058 2058 { 2059 dprintf(("GDI32: OS2SetWorldTransform"));2059 dprintf(("GDI32: SetWorldTransform")); 2060 2060 return O32_SetWorldTransform(arg1, (LPXFORM)arg2); 2061 2061 } … … 2064 2064 INT WIN32API StartDocA( HDC arg1, const DOCINFOA *arg2) 2065 2065 { 2066 dprintf(("GDI32: OS2StartDocA"));2066 dprintf(("GDI32: StartDocA")); 2067 2067 return O32_StartDoc(arg1, (LPDOCINFOA)arg2); 2068 2068 } … … 2071 2071 INT WIN32API StartDocW( HDC arg1, const DOCINFOW *arg2) 2072 2072 { 2073 dprintf(("GDI32: OS2StartDocW STUB"));2073 dprintf(("GDI32: StartDocW STUB")); 2074 2074 // NOTE: This will not work as is (needs UNICODE support) 2075 2075 // return O32_StartDoc(arg1, arg2); … … 2080 2080 int WIN32API StartPage( HDC arg1) 2081 2081 { 2082 dprintf(("GDI32: OS2StartPage"));2082 dprintf(("GDI32: StartPage")); 2083 2083 return O32_StartPage(arg1); 2084 2084 } … … 2090 2090 BOOL rc; 2091 2091 2092 dprintf(("GDI32: OS2TextOutW"));2092 dprintf(("GDI32: TextOutW")); 2093 2093 // NOTE: This will not work as is (needs UNICODE support) 2094 2094 rc = O32_TextOut(arg1, arg2, arg3, astring, arg5); … … 2100 2100 BOOL WIN32API UnrealizeObject( HGDIOBJ arg1) 2101 2101 { 2102 dprintf(("GDI32: OS2UnrealizeObject"));2102 dprintf(("GDI32: UnrealizeObject")); 2103 2103 return O32_UnrealizeObject(arg1); 2104 2104 } … … 2107 2107 BOOL WIN32API WidenPath( HDC arg1) 2108 2108 { 2109 dprintf(("GDI32: OS2WidenPath"));2109 dprintf(("GDI32: WidenPath")); 2110 2110 return O32_WidenPath(arg1); 2111 2111 } … … 2115 2115 HBITMAP WIN32API CreateDiscardableBitmap(HDC hDC, int nWidth, int nHeight) 2116 2116 { 2117 dprintf(("GDI32: OS2CreateDisardableBitmap\n"));2117 dprintf(("GDI32: CreateDisardableBitmap\n")); 2118 2118 return O32_CreateCompatibleBitmap(hDC, nWidth, nHeight); 2119 2119 } … … 2123 2123 int WIN32API SetAbortProc(HDC hdc, ABORTPROC lpAbortProc) 2124 2124 { 2125 dprintf(("GDI32: OS2SetAbortProc - stub (1)w\n"));2125 dprintf(("GDI32: SetAbortProc - stub (1)w\n")); 2126 2126 return(1); 2127 2127 } … … 2132 2132 UINT WIN32API GetTextCharset(HDC hdc) 2133 2133 { 2134 dprintf(("GDI32: OS2GetTextCharset, not complete\n"));2134 dprintf(("GDI32: GetTextCharset, not complete\n")); 2135 2135 return(ANSI_CHARSET); 2136 2136 } … … 2142 2142 BOOL WIN32API SelectClipPath(HDC hdc, int iMode) 2143 2143 { 2144 dprintf(("GDI32: OS2SelectClipPath, not implemented!(TRUE)\n"));2144 dprintf(("GDI32: SelectClipPath, not implemented!(TRUE)\n")); 2145 2145 return(TRUE); 2146 2146 } … … 2152 2152 BOOL WIN32API SetColorAdjustment(HDC hdc, CONST COLORADJUSTMENT *lpca) 2153 2153 { 2154 dprintf(("GDI32: OS2SetColorAdjustment, not implemented!(TRUE)\n"));2154 dprintf(("GDI32: SetColorAdjustment, not implemented!(TRUE)\n")); 2155 2155 return(TRUE); 2156 2156 } … … 2164 2164 BOOL fFlip = 0; 2165 2165 2166 dprintf(("GDI32: OS2CreateDIBSection, partly implemented!\n"));2166 dprintf(("GDI32: CreateDIBSection %x %x %x %d", hdc, iUsage, hSection, dwOffset)); 2167 2167 if(hSection) { 2168 dprintf(("GDI32: OS2CreateDIBSection, hSection != NULL, not supported!\n"));2168 dprintf(("GDI32: CreateDIBSection, hSection != NULL, not supported!\n")); 2169 2169 return NULL; 2170 2170 } … … 2236 2236 DIBSection *dsect = DIBSection::findHDC(hdc); 2237 2237 2238 dprintf(("GDI32: OS2SetDIBColorTable\n"));2238 dprintf(("GDI32: SetDIBColorTable\n")); 2239 2239 if(dsect) { 2240 2240 return(dsect->SetDIBColorTable(uStartIndex, cEntries, pColors)); … … 2246 2246 HPALETTE WIN32API CreateHalftonePalette(HDC hdc) 2247 2247 { 2248 dprintf(("GDI32: OS2CreateHalftonePalette, not implemented\n"));2248 dprintf(("GDI32: CreateHalftonePalette, not implemented\n")); 2249 2249 return(NULL); 2250 }2251 //******************************************************************************2252 //******************************************************************************2253 UINT WIN32API TranslateCharsetInfo(DWORD *lpSrc, LPCHARSETINFO lpCs, DWORD dwFlags)2254 {2255 dprintf(("GDI32: OS2TranslateCharsetInfo, not implemented\n"));2256 return(0);2257 2250 } 2258 2251 //****************************************************************************** … … 2262 2255 BOOL WIN32API UpdateColors(HDC hdc) 2263 2256 { 2264 dprintf(("GDI32: OS2UpdateColors\n"));2257 dprintf(("GDI32: UpdateColors\n")); 2265 2258 return O32_InvalidateRect(O32_WindowFromDC(hdc), NULL, FALSE); 2266 2259 }
Note:
See TracChangeset
for help on using the changeset viewer.