Changeset 1703 for trunk/src


Ignore:
Timestamp:
Nov 11, 1999, 2:16:40 PM (26 years ago)
Author:
sandervl
Message:

font changes + fixes

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 phaller Exp $ */
     1/* $Id: font.cpp,v 1.5 1999-11-11 13:16:40 sandervl Exp $ */
    22
    33/*
     
    55 *
    66 * Copyright 1999 Edgar Buerkle (Edgar.Buerkle@gmx.ne)
    7  * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
     7 * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
    88 * Copyright 1998 Patrick Haller
    99 *
    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
    1116 *
    1217 * Project Odin Software License can be found in LICENSE.TXT
     
    2429#include "misc.h"
    2530#include "unicode.h"
    26 #include <vmutex.h>
    2731#include <heapstring.h>
    2832#include <win\options.h>
     
    3236
    3337
    34 VMutex mutexProcWinA;
    35 VMutex mutexProcWinW;
    36 FONTENUMPROCA FontEnumProcWinA;
    37 FONTENUMPROCW FontEnumProcWinW;
    38 
     38typedef 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
     49static 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};
    3988
    4089/*****************************************************************************
     
    204253  HFONT    hfont;
    205254
    206   //memcpy(&afont, lplf, ((int)&afont.lfFaceName - (int)&afont));
     255  //memcpy(&afont, lplf, ((ULONG)&afont.lfFaceName - (ULONG)&afont));
    207256  memcpy(&afont, lplf, sizeof(LOGFONTA));
    208257  memset(afont.lfFaceName, 0, LF_FACESIZE);
     
    214263//******************************************************************************
    215264int  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);
    219271}
    220272//******************************************************************************
    221273//******************************************************************************
    222274int  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));
    230285  AsciiToUnicodeN(lpLogFont->elfLogFont.lfFaceName, LogFont.elfLogFont.lfFaceName, LF_FACESIZE-1);
    231286  AsciiToUnicodeN((char *) lpLogFont->elfFullName, LogFont.elfFullName, LF_FULLFACESIZE-1);
    232287  AsciiToUnicodeN((char *) lpLogFont->elfStyle, LogFont.elfStyle, LF_FACESIZE-1);
    233288
    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//******************************************************************************
     319int  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//******************************************************************************
     337int 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);
    236379}
    237380//******************************************************************************
     
    239382int WIN32API EnumFontsA( HDC arg1, LPCSTR arg2, FONTENUMPROCA arg3, LPARAM  arg4)
    240383{
    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//******************************************************************************
    247387//******************************************************************************
    248388int WIN32API EnumFontsW( HDC arg1, LPCWSTR arg2, FONTENUMPROCW arg3, LPARAM  arg4)
    249389{
    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);
    254391}
    255392//******************************************************************************
     
    260397                               LPARAM       arg4)
    261398{
     399  ENUMUSERDATA enumData;
    262400  int rc;
    263401
    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
    273409  return rc;
    274410}
     
    280416                               LPARAM       arg4)
    281417{
     418  ENUMUSERDATA enumData;
    282419  int rc;
    283420  char *astring = UnicodeToAsciiString((LPWSTR)arg2);
    284421
    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);
    294428
    295429  FreeAsciiString(astring);
     
    300434INT WIN32API EnumFontFamiliesExA( HDC arg1, LPLOGFONTA arg2, FONTENUMPROCEXA arg3, LPARAM  arg4, DWORD dwFlags)
    301435{
    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;
    304448}
    305449//******************************************************************************
     
    307451INT WIN32API EnumFontFamiliesExW( HDC arg1, LPLOGFONTW arg2, FONTENUMPROCEXW arg3, LPARAM  arg4, DWORD dwFlags)
    308452{
    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;
    312467}
    313468//******************************************************************************
     
    323478int WIN32API AddFontResourceA( LPCSTR arg1)
    324479{
    325     dprintf(("GDI32: OS2AddFontResourceA"));
     480    dprintf(("GDI32: AddFontResourceA"));
    326481    return O32_AddFontResource(arg1);
    327482}
     
    330485int WIN32API AddFontResourceW( LPCWSTR arg1)
    331486{
    332     dprintf(("GDI32: OS2AddFontResourceW STUB"));
     487    dprintf(("GDI32: AddFontResourceW STUB"));
    333488    // NOTE: This will not work as is (needs UNICODE support)
    334489//    return O32_AddFontResource(arg1);
     
    339494BOOL WIN32API RemoveFontResourceA( LPCSTR arg1)
    340495{
    341     dprintf(("GDI32: OS2RemoveFontResourceA %s\n", arg1));
     496    dprintf(("GDI32: RemoveFontResourceA %s\n", arg1));
    342497    return O32_RemoveFontResource(arg1);
    343498}
     
    349504 BOOL  rc;
    350505
    351     dprintf(("GDI32: OS2RemoveFontResourceW\n"));
     506    dprintf(("GDI32: RemoveFontResourceW\n"));
    352507    rc = O32_RemoveFontResource(astring);
    353508    FreeAsciiString(astring);
     
    436591  return (0);
    437592}
    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 */
     608BOOL 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.15 1999-11-10 14:15:23 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.16 1999-11-11 13:16:40 sandervl Exp $ */
    22
    33/*
     
    477477int WIN32API AbortDoc( HDC arg1)
    478478{
    479     dprintf(("GDI32: OS2AbortDoc"));
     479    dprintf(("GDI32: AbortDoc"));
    480480    return O32_AbortDoc(arg1);
    481481}
     
    484484BOOL WIN32API AbortPath( HDC arg1)
    485485{
    486     dprintf(("GDI32: OS2AbortPath"));
     486    dprintf(("GDI32: AbortPath"));
    487487    return O32_AbortPath(arg1);
    488488}
     
    491491BOOL WIN32API AngleArc( HDC arg1, int arg2, int arg3, DWORD arg4, float  arg5, float  arg6)
    492492{
    493     dprintf(("GDI32: OS2AngleArc"));
     493    dprintf(("GDI32: AngleArc"));
    494494    return O32_AngleArc(arg1, arg2, arg3, arg4, arg5, arg6);
    495495}
     
    498498BOOL WIN32API AnimatePalette( HPALETTE arg1, UINT arg2, UINT arg3, const PALETTEENTRY * arg4)
    499499{
    500     dprintf(("GDI32: OS2AnimatePalette"));
     500    dprintf(("GDI32: AnimatePalette"));
    501501    return O32_AnimatePalette(arg1, arg2, arg3, arg4);
    502502}
     
    505505BOOL WIN32API Arc( HDC arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int  arg9)
    506506{
    507     dprintf(("GDI32: OS2Arc"));
     507    dprintf(("GDI32: Arc"));
    508508    return O32_Arc(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
    509509}
     
    512512BOOL WIN32API ArcTo( HDC arg1, int arg2, int arg3, int arg4, int arg5, int  arg6, int  arg7, int  arg8, int  arg9)
    513513{
    514     dprintf(("GDI32: OS2ArcTo"));
     514    dprintf(("GDI32: ArcTo"));
    515515    return O32_ArcTo(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
    516516}
     
    519519BOOL WIN32API BeginPath( HDC arg1)
    520520{
    521     dprintf(("GDI32: OS2BeginPath"));
     521    dprintf(("GDI32: BeginPath"));
    522522    return O32_BeginPath(arg1);
    523523}
     
    532532        }
    533533    }
    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));
    535535    return O32_BitBlt(hdcDest, arg2, arg3, arg4, arg5, hdcSrc, arg7, arg8, arg9);
    536536}
     
    539539BOOL WIN32API Chord( HDC arg1, int arg2, int arg3, int arg4, int arg5, int  arg6, int  arg7, int  arg8, int  arg9)
    540540{
    541     dprintf(("GDI32: OS2Chord"));
     541    dprintf(("GDI32: Chord"));
    542542    return O32_Chord(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
    543543}
     
    546546HENHMETAFILE WIN32API CloseEnhMetaFile( HDC arg1)
    547547{
    548     dprintf(("GDI32: OS2CloseEnhMetaFile"));
     548    dprintf(("GDI32: CloseEnhMetaFile"));
    549549    return O32_CloseEnhMetaFile(arg1);
    550550}
     
    553553BOOL WIN32API CloseFigure( HDC arg1)
    554554{
    555     dprintf(("GDI32: OS2CloseFigure"));
     555    dprintf(("GDI32: CloseFigure"));
    556556    return O32_CloseFigure(arg1);
    557557}
     
    560560HMETAFILE WIN32API CloseMetaFile( HDC arg1)
    561561{
    562     dprintf(("GDI32: OS2CloseMetaFile"));
     562    dprintf(("GDI32: CloseMetaFile"));
    563563    return O32_CloseMetaFile(arg1);
    564564}
     
    567567int WIN32API CombineRgn( HRGN arg1, HRGN  arg2, HRGN  arg3, int  arg4)
    568568{
    569     dprintf(("GDI32: OS2CombineRgn"));
     569    dprintf(("GDI32: CombineRgn"));
    570570    return O32_CombineRgn(arg1, arg2, arg3, arg4);
    571571}
     
    574574HENHMETAFILE WIN32API CopyEnhMetaFileA( HENHMETAFILE arg1, LPCSTR  arg2)
    575575{
    576     dprintf(("GDI32: OS2CopyEnhMetaFileA"));
     576    dprintf(("GDI32: CopyEnhMetaFileA"));
    577577    return O32_CopyEnhMetaFile(arg1, arg2);
    578578}
     
    584584 HENHMETAFILE rc;
    585585
    586     dprintf(("GDI32: OS2CopyEnhMetaFileW"));
     586    dprintf(("GDI32: CopyEnhMetaFileW"));
    587587    rc = O32_CopyEnhMetaFile(arg1, astring);
    588588    FreeAsciiString(astring);
     
    593593HMETAFILE WIN32API CopyMetaFileA( HMETAFILE arg1, LPCSTR  arg2)
    594594{
    595     dprintf(("GDI32: OS2CopyMetaFileA"));
     595    dprintf(("GDI32: CopyMetaFileA"));
    596596    return O32_CopyMetaFile(arg1, arg2);
    597597}
     
    603603 HMETAFILE rc;
    604604
    605     dprintf(("GDI32: OS2CopyMetaFileW"));
     605    dprintf(("GDI32: CopyMetaFileW"));
    606606    rc = O32_CopyMetaFile(arg1, astring);
    607607    FreeAsciiString(astring);
     
    616616
    617617    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));
    619619    return(rc);
    620620}
     
    623623HBITMAP WIN32API CreateBitmapIndirect( const BITMAP * arg1)
    624624{
    625     dprintf(("GDI32: OS2CreateBitmapIndirect"));
     625    dprintf(("GDI32: CreateBitmapIndirect"));
    626626    return O32_CreateBitmapIndirect(arg1);
    627627}
     
    630630HBRUSH WIN32API CreateBrushIndirect( const LOGBRUSH * arg1)
    631631{
    632     dprintf(("GDI32: OS2CreateBrushIndirect"));
     632    dprintf(("GDI32: CreateBrushIndirect"));
    633633    return O32_CreateBrushIndirect((LPLOGBRUSH)arg1);
    634634}
     
    637637HDC WIN32API CreateDCA( LPCSTR arg1, LPCSTR arg2, LPCSTR arg3, const DEVMODEA * arg4)
    638638{
    639     dprintf(("GDI32: OS2CreateDCA"));
     639    dprintf(("GDI32: CreateDCA"));
    640640    return O32_CreateDC(arg1, arg2, arg3, arg4);
    641641}
     
    644644HDC WIN32API CreateDCW( LPCWSTR arg1, LPCWSTR arg2, LPCWSTR arg3, const DEVMODEW * arg4)
    645645{
    646     dprintf(("GDI32: OS2CreateDCW STUB"));
     646    dprintf(("GDI32: CreateDCW STUB"));
    647647    // NOTE: This will not work as is (needs UNICODE support)
    648648//    return O32_CreateDC(arg1, arg2, arg3, arg4);
     
    653653HRGN WIN32API CreateEllipticRgn( int arg1, int arg2, int arg3, int  arg4)
    654654{
    655     dprintf(("GDI32: OS2CreateEllipticRgn"));
     655    dprintf(("GDI32: CreateEllipticRgn"));
    656656    return O32_CreateEllipticRgn(arg1, arg2, arg3, arg4);
    657657}
     
    660660HRGN WIN32API CreateEllipticRgnIndirect( const RECT * arg1)
    661661{
    662     dprintf(("GDI32: OS2CreateEllipticRgnIndirect"));
     662    dprintf(("GDI32: CreateEllipticRgnIndirect"));
    663663    return O32_CreateEllipticRgnIndirect(arg1);
    664664}
     
    667667HENHMETAFILE WIN32API CreateEnhMetaFileA( HDC arg1, LPCSTR arg2, const RECT * arg3, LPCSTR  arg4)
    668668{
    669     dprintf(("GDI32: OS2CreateEnhMetaFileA"));
     669    dprintf(("GDI32: CreateEnhMetaFileA"));
    670670    return O32_CreateEnhMetaFile(arg1, arg2, arg3, arg4);
    671671}
     
    674674HENHMETAFILE WIN32API CreateEnhMetaFileW( HDC arg1, LPCWSTR arg2, const RECT * arg3, LPCWSTR  arg4)
    675675{
    676     dprintf(("GDI32: OS2CreateEnhMetaFileW STUB"));
     676    dprintf(("GDI32: CreateEnhMetaFileW STUB"));
    677677    // NOTE: This will not work as is (needs UNICODE support)
    678678//    return O32_CreateEnhMetaFile(arg1, arg2, arg3, arg4);
     
    685685HBRUSH WIN32API CreateHatchBrush( int arg1, COLORREF  arg2)
    686686{
    687     dprintf(("GDI32: OS2CreateHatchBrush"));
     687    dprintf(("GDI32: CreateHatchBrush"));
    688688    return O32_CreateHatchBrush(arg1, arg2);
    689689}
     
    692692HDC WIN32API CreateICA( LPCSTR arg1, LPCSTR arg2, LPCSTR arg3, const DEVMODEA * arg4)
    693693{
    694     dprintf(("GDI32: OS2CreateICA"));
     694    dprintf(("GDI32: CreateICA"));
    695695    return O32_CreateIC(arg1, arg2, arg3, arg4);
    696696}
     
    699699HDC WIN32API CreateICW( LPCWSTR arg1, LPCWSTR arg2, LPCWSTR arg3, const DEVMODEW * arg4)
    700700{
    701     dprintf(("GDI32: OS2CreateICW STUB"));
     701    dprintf(("GDI32: CreateICW STUB"));
    702702    // NOTE: This will not work as is (needs UNICODE support)
    703703//    return O32_CreateIC(arg1, arg2, arg3, arg4);
     
    708708HDC WIN32API CreateMetaFileA( LPCSTR arg1)
    709709{
    710     dprintf(("GDI32: OS2CreateMetaFileA"));
     710    dprintf(("GDI32: CreateMetaFileA"));
    711711    return O32_CreateMetaFile(arg1);
    712712}
     
    718718 HDC   rc;
    719719
    720     dprintf(("GDI32: OS2CreateMetaFileW"));
     720    dprintf(("GDI32: CreateMetaFileW"));
    721721    rc = O32_CreateMetaFile(astring);
    722722    FreeAsciiString(astring);
     
    727727HRGN WIN32API CreateRectRgn( int arg1, int arg2, int arg3, int  arg4)
    728728{
    729     dprintf(("GDI32: OS2CreateRectRgn"));
     729    dprintf(("GDI32: CreateRectRgn"));
    730730    return O32_CreateRectRgn(arg1, arg2, arg3, arg4);
    731731}
     
    734734HRGN WIN32API CreateRectRgnIndirect( const RECT * arg1)
    735735{
    736     dprintf(("GDI32: OS2CreateRectRgnIndirect"));
     736    dprintf(("GDI32: CreateRectRgnIndirect"));
    737737    return O32_CreateRectRgnIndirect(arg1);
    738738}
     
    741741HRGN WIN32API CreateRoundRectRgn( int arg1, int arg2, int arg3, int arg4, int arg5, int  arg6)
    742742{
    743     dprintf(("GDI32: OS2CreateRoundRectRgn"));
     743    dprintf(("GDI32: CreateRoundRectRgn"));
    744744    return O32_CreateRoundRectRgn(arg1, arg2, arg3, arg4, arg5, arg6);
    745745}
     
    748748HBRUSH WIN32API CreateSolidBrush( COLORREF arg1)
    749749{
    750     dprintf(("GDI32: OS2CreateSolidBrush\n"));
     750    dprintf(("GDI32: CreateSolidBrush\n"));
    751751    return O32_CreateSolidBrush(arg1);
    752752}
     
    755755BOOL WIN32API DPtoLP( HDC arg1, PPOINT arg2, int  arg3)
    756756{
    757     dprintf(("GDI32: OS2DPtoLP\n"));
     757    dprintf(("GDI32: DPtoLP\n"));
    758758    return O32_DPtoLP(arg1, arg2, arg3);
    759759}
     
    762762BOOL WIN32API DeleteEnhMetaFile( HENHMETAFILE arg1)
    763763{
    764     dprintf(("GDI32: OS2DeleteEnhMetaFile\n"));
     764    dprintf(("GDI32: DeleteEnhMetaFile\n"));
    765765    return O32_DeleteEnhMetaFile(arg1);
    766766}
     
    769769BOOL WIN32API DeleteMetaFile( HMETAFILE arg1)
    770770{
    771     dprintf(("GDI32: OS2DeleteMetaFile"));
     771    dprintf(("GDI32: DeleteMetaFile"));
    772772    return O32_DeleteMetaFile(arg1);
    773773}
     
    776776BOOL WIN32API Ellipse( HDC arg1, int arg2, int arg3, int arg4, int  arg5)
    777777{
    778     dprintf(("GDI32: OS2Ellipse"));
     778    dprintf(("GDI32: Ellipse"));
    779779    return O32_Ellipse(arg1, arg2, arg3, arg4, arg5);
    780780}
     
    783783int WIN32API EndDoc( HDC arg1)
    784784{
    785     dprintf(("GDI32: OS2EndDoc"));
     785    dprintf(("GDI32: EndDoc"));
    786786    return O32_EndDoc(arg1);
    787787}
     
    790790int WIN32API EndPage( HDC arg1)
    791791{
    792     dprintf(("GDI32: OS2EndPage"));
     792    dprintf(("GDI32: EndPage"));
    793793    return O32_EndPage(arg1);
    794794}
     
    797797BOOL WIN32API EndPath( HDC arg1)
    798798{
    799     dprintf(("GDI32: OS2EndPath"));
     799    dprintf(("GDI32: EndPath"));
    800800    return O32_EndPath(arg1);
    801801}
     
    804804BOOL WIN32API EnumEnhMetaFile( HDC arg1, HENHMETAFILE arg2, ENHMFENUMPROC arg3, PVOID arg4, const RECT *  arg5)
    805805{
    806     dprintf(("GDI32: OS2EnumEnhMetaFile DOESN'T WORK!"));
     806    dprintf(("GDI32: EnumEnhMetaFile DOESN'T WORK!"));
    807807//    return O32_EnumEnhMetaFile(arg1, arg2, arg3, arg4, arg5);
    808808    return 0;
     
    810810//******************************************************************************
    811811//******************************************************************************
    812 POINT OS2ToWin32LineEnd(POINT startPt,INT nXEnd,INT nYEnd)
     812POINT ToWin32LineEnd(POINT startPt,INT nXEnd,INT nYEnd)
    813813{
    814814  POINT pt;
     
    859859  POINT oldPt,pt;
    860860
    861   dprintf(("GDI32: OS2LineTo"));
     861  dprintf(("GDI32: LineTo"));
    862862
    863863  //CB: Open32 draws a pixel too much!
    864864  GetCurrentPositionEx(hdc,&oldPt);
    865   pt = OS2ToWin32LineEnd(oldPt,nXEnd,nYEnd);
     865  pt = ToWin32LineEnd(oldPt,nXEnd,nYEnd);
    866866
    867867  BOOL rc;
     
    881881BOOL WIN32API MoveToEx( HDC arg1, int arg2, int arg3, PPOINT  arg4)
    882882{
    883     dprintf(("GDI32: OS2MoveToEx\n"));
     883    dprintf(("GDI32: MoveToEx\n"));
    884884    return O32_MoveToEx(arg1, arg2, arg3, arg4);
    885885}
     
    891891
    892892  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));
    894894  return(rc);
    895895}
     
    898898BOOL WIN32API Rectangle( HDC arg1, int arg2, int arg3, int arg4, int  arg5)
    899899{
    900     dprintf(("GDI32: OS2Rectangle\n"));
     900    dprintf(("GDI32: Rectangle\n"));
    901901    return O32_Rectangle(arg1, arg2, arg3, arg4, arg5);
    902902}
     
    905905int WIN32API SetROP2( HDC arg1, int  arg2)
    906906{
    907     dprintf(("GDI32: OS2SetROP2"));
     907    dprintf(("GDI32: SetROP2"));
    908908    return O32_SetROP2(arg1, arg2);
    909909}
     
    913913BOOL WIN32API EnumMetaFile( HDC arg1, HMETAFILE arg2, MFENUMPROC arg3, LPARAM  arg4)
    914914{
    915     dprintf(("GDI32: OS2EnumMetaFile STUB"));
     915    dprintf(("GDI32: EnumMetaFile STUB"));
    916916    //calling convention differences
    917917//    return O32_EnumMetaFile(arg1, arg2, arg3, arg4);
     
    922922int WIN32API EnumObjects( HDC arg1, int arg2, GOBJENUMPROC arg3, LPARAM  arg4)
    923923{
    924     dprintf(("GDI32: OS2EnumObjects STUB"));
     924    dprintf(("GDI32: EnumObjects STUB"));
    925925    //calling convention differences
    926926//    return O32_EnumObjects(arg1, arg2, arg3, arg4);
     
    931931BOOL WIN32API EqualRgn( HRGN arg1, HRGN  arg2)
    932932{
    933     dprintf(("GDI32: OS2EqualRgn"));
     933    dprintf(("GDI32: EqualRgn"));
    934934    return O32_EqualRgn(arg1, arg2);
    935935}
     
    938938int WIN32API Escape( HDC arg1, int arg2, int arg3, LPCSTR arg4, PVOID  arg5)
    939939{
    940     dprintf(("GDI32: OS2Escape"));
     940    dprintf(("GDI32: Escape"));
    941941    return O32_Escape(arg1, arg2, arg3, arg4, arg5);
    942942}
     
    945945int WIN32API ExcludeClipRect( HDC arg1, int arg2, int arg3, int arg4, int  arg5)
    946946{
    947     dprintf(("GDI32: OS2ExcludeClipRect"));
     947    dprintf(("GDI32: ExcludeClipRect"));
    948948    return O32_ExcludeClipRect(arg1, arg2, arg3, arg4, arg5);
    949949}
     
    952952HPEN WIN32API ExtCreatePen( DWORD arg1, DWORD arg2, const LOGBRUSH * arg3, DWORD arg4, const DWORD *  arg5)
    953953{
    954     dprintf(("GDI32: OS2ExtCreatePen"));
     954    dprintf(("GDI32: ExtCreatePen"));
    955955    return O32_ExtCreatePen(arg1, arg2, arg3, arg4, arg5);
    956956}
     
    959959HRGN WIN32API ExtCreateRegion( const XFORM * arg1, DWORD arg2, const RGNDATA *  arg3)
    960960{
    961     dprintf(("GDI32: OS2ExtCreateRegion"));
     961    dprintf(("GDI32: ExtCreateRegion"));
    962962    return O32_ExtCreateRegion(arg1, arg2, arg3);
    963963}
     
    966966BOOL WIN32API ExtFloodFill( HDC arg1, int arg2, int arg3, COLORREF arg4, UINT  arg5)
    967967{
    968     dprintf(("GDI32: OS2ExtFloodFill"));
     968    dprintf(("GDI32: ExtFloodFill"));
    969969    return O32_ExtFloodFill(arg1, arg2, arg3, arg4, arg5);
    970970}
     
    973973int WIN32API ExtSelectClipRgn( HDC arg1, HRGN arg2, int  arg3)
    974974{
    975     dprintf(("GDI32: OS2ExtSelectClipRgn"));
     975    dprintf(("GDI32: ExtSelectClipRgn"));
    976976    return O32_ExtSelectClipRgn(arg1, arg2, arg3);
    977977}
     
    986986
    987987    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));
    990990    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));
    992992    FreeAsciiString(astring);
    993993    return(rc);
     
    997997BOOL WIN32API FillPath( HDC arg1)
    998998{
    999     dprintf(("GDI32: OS2FillPath"));
     999    dprintf(("GDI32: FillPath"));
    10001000    return O32_FillPath(arg1);
    10011001}
     
    10041004BOOL WIN32API FillRgn( HDC arg1, HRGN arg2, HBRUSH  arg3)
    10051005{
    1006     dprintf(("GDI32: OS2FillRgn"));
     1006    dprintf(("GDI32: FillRgn"));
    10071007    return O32_FillRgn(arg1, arg2, arg3);
    10081008}
     
    10111011BOOL WIN32API FlattenPath( HDC arg1)
    10121012{
    1013     dprintf(("GDI32: OS2FlattenPath"));
     1013    dprintf(("GDI32: FlattenPath"));
    10141014    return O32_FlattenPath(arg1);
    10151015}
     
    10181018BOOL WIN32API FloodFill(HDC arg1, int arg2, int arg3, COLORREF  arg4)
    10191019{
    1020     dprintf(("GDI32: OS2FloodFill"));
     1020    dprintf(("GDI32: FloodFill"));
    10211021    return O32_FloodFill(arg1, arg2, arg3, arg4);
    10221022}
     
    10251025BOOL WIN32API FrameRgn( HDC arg1, HRGN arg2, HBRUSH arg3, int arg4, int  arg5)
    10261026{
    1027     dprintf(("GDI32: OS2FrameRgn"));
     1027    dprintf(("GDI32: FrameRgn"));
    10281028    return O32_FrameRgn(arg1, arg2, arg3, arg4, arg5);
    10291029}
     
    10321032int WIN32API GetArcDirection( HDC arg1)
    10331033{
    1034     dprintf(("GDI32: OS2GetArcDirection"));
     1034    dprintf(("GDI32: GetArcDirection"));
    10351035    return O32_GetArcDirection(arg1);
    10361036}
     
    10391039BOOL WIN32API GetAspectRatioFilterEx( HDC arg1, PSIZE  arg2)
    10401040{
    1041     dprintf(("GDI32: OS2GetAspectRatioFilterEx"));
     1041    dprintf(("GDI32: GetAspectRatioFilterEx"));
    10421042    return O32_GetAspectRatioFilterEx(arg1, arg2);
    10431043}
     
    10461046LONG WIN32API GetBitmapBits( HBITMAP arg1, LONG arg2, PVOID  arg3)
    10471047{
    1048     dprintf(("GDI32: OS2GetBitmapBits"));
     1048    dprintf(("GDI32: GetBitmapBits"));
    10491049    return O32_GetBitmapBits(arg1, arg2, arg3);
    10501050}
     
    10531053BOOL WIN32API GetBitmapDimensionEx( HBITMAP arg1, PSIZE  arg2)
    10541054{
    1055     dprintf(("GDI32: OS2GetBitmapDimensionEx"));
     1055    dprintf(("GDI32: GetBitmapDimensionEx"));
    10561056    return O32_GetBitmapDimensionEx(arg1, arg2);
    10571057}
     
    10601060COLORREF WIN32API GetBkColor( HDC arg1)
    10611061{
    1062     dprintf(("GDI32: OS2GetBkColor"));
     1062    dprintf(("GDI32: GetBkColor"));
    10631063    return O32_GetBkColor(arg1);
    10641064}
     
    10671067int WIN32API GetBkMode( HDC arg1)
    10681068{
    1069     dprintf(("GDI32: OS2GetBkMode"));
     1069    dprintf(("GDI32: GetBkMode"));
    10701070    return O32_GetBkMode(arg1);
    10711071}
     
    10741074UINT WIN32API GetBoundsRect( HDC arg1, PRECT arg2, UINT  arg3)
    10751075{
    1076     dprintf(("GDI32: OS2GetBoundsRect"));
     1076    dprintf(("GDI32: GetBoundsRect"));
    10771077    return O32_GetBoundsRect(arg1, arg2, arg3);
    10781078}
     
    10811081BOOL WIN32API GetBrushOrgEx( HDC arg1, PPOINT  arg2)
    10821082{
    1083     dprintf(("GDI32: OS2GetBrushOrgEx"));
     1083    dprintf(("GDI32: GetBrushOrgEx"));
    10841084    return O32_GetBrushOrgEx(arg1, arg2);
    10851085}
     
    10881088BOOL WIN32API GetCharABCWidthsA( HDC arg1, UINT arg2, UINT arg3, LPABC arg4)
    10891089{
    1090     dprintf(("GDI32: OS2GetCharABCWidthsA"));
     1090    dprintf(("GDI32: GetCharABCWidthsA"));
    10911091    return O32_GetCharABCWidths(arg1, arg2, arg3, arg4);
    10921092}
     
    10951095BOOL WIN32API GetCharABCWidthsW( HDC arg1, UINT arg2, UINT arg3, LPABC arg4)
    10961096{
    1097     dprintf(("GDI32: OS2GetCharABCWidthsW not properly implemented."));
     1097    dprintf(("GDI32: GetCharABCWidthsW not properly implemented."));
    10981098    // NOTE: This will not work as is (needs UNICODE support)
    10991099    return O32_GetCharABCWidths(arg1, arg2, arg3, arg4);
     
    11031103BOOL WIN32API GetCharWidthA( HDC arg1, UINT arg2, UINT arg3, PINT  arg4)
    11041104{
    1105     dprintf(("GDI32: OS2GetCharWidthA"));
     1105    dprintf(("GDI32: GetCharWidthA"));
    11061106    return O32_GetCharWidth(arg1, arg2, arg3, arg4);
    11071107}
     
    11111111BOOL WIN32API GetCharWidthW(HDC arg1, UINT iFirstChar, UINT iLastChar, PINT  arg4)
    11121112{
    1113     dprintf(("GDI32: OS2GetCharWidthW, not properly implemented"));
     1113    dprintf(("GDI32: GetCharWidthW, not properly implemented"));
    11141114    return O32_GetCharWidth(arg1, iFirstChar, iLastChar, arg4);
    11151115}
     
    11211121
    11221122  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));
    11241124  return(rc);
    11251125}
     
    11281128int WIN32API GetClipRgn( HDC arg1, HRGN  arg2)
    11291129{
    1130     dprintf(("GDI32: OS2GetClipRgn"));
     1130    dprintf(("GDI32: GetClipRgn"));
    11311131    return O32_GetClipRgn(arg1, arg2);
    11321132}
     
    11351135HANDLE WIN32API GetCurrentObject( HDC arg1, UINT arg2)
    11361136{
    1137     dprintf(("GDI32: OS2GetCurrentObject"));
     1137    dprintf(("GDI32: GetCurrentObject"));
    11381138    return (HANDLE)O32_GetCurrentObject(arg1, arg2);
    11391139}
     
    11421142BOOL WIN32API GetCurrentPositionEx( HDC arg1, PPOINT  arg2)
    11431143{
    1144     dprintf(("GDI32: OS2GetCurrentPositionEx"));
     1144    dprintf(("GDI32: GetCurrentPositionEx"));
    11451145    return O32_GetCurrentPositionEx(arg1, arg2);
    11461146}
     
    11491149int WIN32API GetDIBits( HDC arg1, HBITMAP arg2, UINT arg3, UINT arg4, void * arg5, PBITMAPINFO arg6, UINT  arg7)
    11501150{
    1151     dprintf(("GDI32: OS2GetDIBits"));
     1151    dprintf(("GDI32: GetDIBits"));
    11521152    return O32_GetDIBits(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
    11531153}
     
    11591159
    11601160    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));
    11621162    //SvL: 13-9-'98: NT returns -1 when using 16 bits colors, NOT 65536!
    11631163    if(nIndex == NUMCOLORS && rc > 256)
     
    11691169HENHMETAFILE WIN32API GetEnhMetaFileA( LPCSTR arg1)
    11701170{
    1171     dprintf(("GDI32: OS2GetEnhMetaFileA"));
     1171    dprintf(("GDI32: GetEnhMetaFileA"));
    11721172    return O32_GetEnhMetaFile(arg1);
    11731173}
     
    11761176UINT WIN32API GetEnhMetaFileBits( HENHMETAFILE arg1, UINT arg2, PBYTE  arg3)
    11771177{
    1178     dprintf(("GDI32: OS2GetEnhMetaFileBits"));
     1178    dprintf(("GDI32: GetEnhMetaFileBits"));
    11791179    return O32_GetEnhMetaFileBits(arg1, arg2, arg3);
    11801180}
     
    11831183UINT WIN32API GetEnhMetaFileHeader( HENHMETAFILE arg1, UINT arg2, LPENHMETAHEADER  arg3)
    11841184{
    1185     dprintf(("GDI32: OS2GetEnhMetaFileHeader"));
     1185    dprintf(("GDI32: GetEnhMetaFileHeader"));
    11861186    return O32_GetEnhMetaFileHeader(arg1, arg2, arg3);
    11871187}
     
    11901190UINT WIN32API GetEnhMetaFilePaletteEntries( HENHMETAFILE arg1, UINT arg2, PPALETTEENTRY  arg3)
    11911191{
    1192     dprintf(("GDI32: OS2GetEnhMetaFilePaletteEntries"));
     1192    dprintf(("GDI32: GetEnhMetaFilePaletteEntries"));
    11931193    return O32_GetEnhMetaFilePaletteEntries(arg1, arg2, arg3);
    11941194}
     
    12001200 HENHMETAFILE rc;
    12011201
    1202     dprintf(("GDI32: OS2GetEnhMetaFileW"));
     1202    dprintf(("GDI32: GetEnhMetaFileW"));
    12031203    // NOTE: This will not work as is (needs UNICODE support)
    12041204    rc = O32_GetEnhMetaFile(astring);
     
    12101210int WIN32API GetGraphicsMode(HDC arg1)
    12111211{
    1212     dprintf(("GDI32: OS2GetGraphicsMode"));
     1212    dprintf(("GDI32: GetGraphicsMode"));
    12131213    return O32_GetGraphicsMode(arg1);
    12141214}
     
    12171217DWORD WIN32API GetKerningPairsA( HDC arg1, DWORD arg2, LPKERNINGPAIR  arg3)
    12181218{
    1219     dprintf(("GDI32: OS2GetKerningPairsA"));
     1219    dprintf(("GDI32: GetKerningPairsA"));
    12201220    return O32_GetKerningPairs(arg1, arg2, arg3);
    12211221}
     
    12241224DWORD WIN32API GetKerningPairsW( HDC arg1, DWORD arg2, LPKERNINGPAIR  arg3)
    12251225{
    1226     dprintf(("GDI32: OS2GetKerningPairsW"));
     1226    dprintf(("GDI32: GetKerningPairsW"));
    12271227    // NOTE: This will not work as is (needs UNICODE support)
    12281228    return O32_GetKerningPairs(arg1, arg2, arg3);
     
    12321232int WIN32API GetMapMode( HDC arg1)
    12331233{
    1234     dprintf(("GDI32: OS2GetMapMode"));
     1234    dprintf(("GDI32: GetMapMode"));
    12351235    return O32_GetMapMode(arg1);
    12361236}
     
    12391239HMETAFILE WIN32API GetMetaFileA( LPCSTR arg1)
    12401240{
    1241     dprintf(("GDI32: OS2GetMetaFileA"));
     1241    dprintf(("GDI32: GetMetaFileA"));
    12421242    return O32_GetMetaFile(arg1);
    12431243}
     
    12461246UINT WIN32API GetMetaFileBitsEx( HMETAFILE arg1, UINT arg2, LPVOID  arg3)
    12471247{
    1248     dprintf(("GDI32: OS2GetMetaFileBitsEx"));
     1248    dprintf(("GDI32: GetMetaFileBitsEx"));
    12491249    return O32_GetMetaFileBitsEx(arg1, arg2, arg3);
    12501250}
     
    12561256 HENHMETAFILE rc;
    12571257
    1258     dprintf(("GDI32: OS2GetMetaFileW"));
     1258    dprintf(("GDI32: GetMetaFileW"));
    12591259    rc = O32_GetMetaFile(astring);
    12601260    FreeAsciiString(astring);
     
    12661266BOOL WIN32API GetMiterLimit( HDC arg1, float * arg2)
    12671267{
    1268     dprintf(("GDI32: OS2GetMiterLimit"));
     1268    dprintf(("GDI32: GetMiterLimit"));
    12691269    return O32_GetMiterLimit(arg1, arg2);
    12701270}
     
    12731273COLORREF WIN32API GetNearestColor( HDC arg1, COLORREF  arg2)
    12741274{
    1275     dprintf(("GDI32: OS2GetNearestColor\n"));
     1275    dprintf(("GDI32: GetNearestColor\n"));
    12761276    return O32_GetNearestColor(arg1, arg2);
    12771277}
     
    12801280UINT WIN32API GetNearestPaletteIndex( HPALETTE arg1, COLORREF  arg2)
    12811281{
    1282     dprintf(("GDI32: OS2GetNearestPaletteIndex\n"));
     1282    dprintf(("GDI32: GetNearestPaletteIndex\n"));
    12831283    return O32_GetNearestPaletteIndex(arg1, arg2);
    12841284}
     
    12871287int WIN32API GetObjectW( HGDIOBJ arg1, int arg2, void *  arg3)
    12881288{
    1289     dprintf(("GDI32: OS2GetObjectW %X, %d %X\n", arg1, arg2, arg3));
     1289    dprintf(("GDI32: GetObjectW %X, %d %X\n", arg1, arg2, arg3));
    12901290    // NOTE: This will not work as is (needs UNICODE support)
    12911291    return O32_GetObject(arg1, arg2, arg3);
     
    12951295UINT WIN32API GetOutlineTextMetricsA( HDC arg1, UINT arg2, LPOUTLINETEXTMETRICA  arg3)
    12961296{
    1297     dprintf(("GDI32: OS2GetOutlineTextMetricsA"));
     1297    dprintf(("GDI32: GetOutlineTextMetricsA"));
    12981298    return O32_GetOutlineTextMetrics(arg1, arg2, arg3);
    12991299}
     
    13021302UINT WIN32API GetOutlineTextMetricsW( HDC arg1, UINT arg2, LPOUTLINETEXTMETRICW  arg3)
    13031303{
    1304     dprintf(("GDI32: OS2GetOutlineTextMetricsW STUB"));
     1304    dprintf(("GDI32: GetOutlineTextMetricsW STUB"));
    13051305    // NOTE: This will not work as is (needs UNICODE support)
    13061306//    return O32_GetOutlineTextMetrics(arg1, arg2, arg3);
     
    13111311UINT WIN32API GetPaletteEntries( HPALETTE arg1, UINT arg2, UINT arg3, PPALETTEENTRY  arg4)
    13121312{
    1313     dprintf(("GDI32: OS2GetPaletteEntries"));
     1313    dprintf(("GDI32: GetPaletteEntries"));
    13141314    return O32_GetPaletteEntries(arg1, arg2, arg3, arg4);
    13151315}
     
    13181318INT WIN32API GetPath( HDC arg1, PPOINT arg2, PBYTE arg3, int  arg4)
    13191319{
    1320     dprintf(("GDI32: OS2GetPath"));
     1320    dprintf(("GDI32: GetPath"));
    13211321    return O32_GetPath(arg1, arg2, arg3, arg4);
    13221322}
     
    13251325int WIN32API GetPolyFillMode( HDC arg1)
    13261326{
    1327     dprintf(("GDI32: OS2GetPolyFillMode"));
     1327    dprintf(("GDI32: GetPolyFillMode"));
    13281328    return O32_GetPolyFillMode(arg1);
    13291329}
     
    13321332int WIN32API GetROP2( HDC arg1)
    13331333{
    1334     dprintf(("GDI32: OS2GetROP2"));
     1334    dprintf(("GDI32: GetROP2"));
    13351335    return O32_GetROP2(arg1);
    13361336}
     
    13391339BOOL WIN32API GetRasterizerCaps(LPRASTERIZER_STATUS arg1, UINT  arg2)
    13401340{
    1341     dprintf(("GDI32: OS2GetRasterizerCaps"));
     1341    dprintf(("GDI32: GetRasterizerCaps"));
    13421342    return O32_GetRasterizerCaps(arg1, arg2);
    13431343}
     
    13461346DWORD WIN32API GetRegionData( HRGN arg1, DWORD arg2, PRGNDATA  arg3)
    13471347{
    1348     dprintf(("GDI32: OS2GetRegionData"));
     1348    dprintf(("GDI32: GetRegionData"));
    13491349    return O32_GetRegionData(arg1, arg2, arg3);
    13501350}
     
    13531353int WIN32API GetRgnBox( HRGN arg1, PRECT  arg2)
    13541354{
    1355     dprintf(("GDI32: OS2GetRgnBox"));
     1355    dprintf(("GDI32: GetRgnBox"));
    13561356    return O32_GetRgnBox(arg1, arg2);
    13571357}
     
    13601360int WIN32API GetStretchBltMode( HDC arg1)
    13611361{
    1362     dprintf(("GDI32: OS2GetStretchBltMode"));
     1362    dprintf(("GDI32: GetStretchBltMode"));
    13631363    return O32_GetStretchBltMode(arg1);
    13641364}
     
    13691369 UINT rc;
    13701370
    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));
    13721372    rc = O32_GetSystemPaletteEntries(arg1, arg2, arg3, arg4);
    13731373    dprintf((" GetSystemPaletteEntries returned %d", rc));
     
    13781378UINT WIN32API GetTextAlign( HDC arg1)
    13791379{
    1380     dprintf(("GDI32: OS2GetTextAlign"));
     1380    dprintf(("GDI32: GetTextAlign"));
    13811381    return O32_GetTextAlign(arg1);
    13821382}
     
    13851385int WIN32API GetTextCharacterExtra( HDC arg1)
    13861386{
    1387     dprintf(("GDI32: OS2GetTextCharacterExtra"));
     1387    dprintf(("GDI32: GetTextCharacterExtra"));
    13881388    return O32_GetTextCharacterExtra(arg1);
    13891389}
     
    13921392COLORREF WIN32API GetTextColor( HDC arg1)
    13931393{
    1394     dprintf(("GDI32: OS2GetTextColor"));
     1394    dprintf(("GDI32: GetTextColor"));
    13951395    return O32_GetTextColor(arg1);
    13961396}
     
    13991399BOOL WIN32API GetTextExtentPoint32A( HDC arg1, LPCSTR arg2, int arg3, PSIZE  lpSize)
    14001400{
    1401     dprintf(("GDI32: OS2GetTextExtentPoint32A"));
     1401    dprintf(("GDI32: GetTextExtentPoint32A"));
    14021402    lpSize->cx = lpSize->cy = 0;
    14031403    return O32_GetTextExtentPoint32(arg1, arg2, arg3, lpSize);
     
    14101410 BOOL  rc;
    14111411
    1412     dprintf(("GDI32: OS2GetTextExtentPoint32W %s\n", astring));
     1412    dprintf(("GDI32: GetTextExtentPoint32W %s\n", astring));
    14131413    lpSize->cx = lpSize->cy = 0;
    14141414    rc = O32_GetTextExtentPoint32(arg1, astring, arg3, lpSize);
     
    14311431                         cbString,
    14321432                         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));
    14351435
    14361436  FreeAsciiString(astring);
     
    14411441int WIN32API GetTextFaceA( HDC arg1, int arg2, LPSTR  arg3)
    14421442{
    1443     dprintf(("GDI32: OS2GetTextFaceA"));
     1443    dprintf(("GDI32: GetTextFaceA"));
    14441444    return O32_GetTextFace(arg1, arg2, arg3);
    14451445}
     
    14511451 int   rc;
    14521452
    1453     dprintf(("GDI32: OS2GetTextFaceW"));
     1453    dprintf(("GDI32: GetTextFaceW"));
    14541454    rc = O32_GetTextFace(arg1, arg2, astring);
    14551455    AsciiToUnicode(astring, arg3);
     
    14631463
    14641464    rc = O32_GetTextMetrics(arg1, arg2);
    1465     dprintf(("GDI32: OS2GetTextMetricsA returned %d\n", rc));
     1465    dprintf(("GDI32: GetTextMetricsA returned %d\n", rc));
    14661466    return(rc);
    14671467}
     
    14731473 TEXTMETRICA atm;
    14741474
    1475     dprintf(("GDI32: OS2GetTextMetricsW"));
     1475    dprintf(("GDI32: GetTextMetricsW"));
    14761476
    14771477    rc = O32_GetTextMetrics(arg1, &atm);
     
    15021502BOOL WIN32API GetViewportExtEx( HDC arg1, PSIZE  arg2)
    15031503{
    1504     dprintf(("GDI32: OS2GetViewportExtEx"));
     1504    dprintf(("GDI32: GetViewportExtEx"));
    15051505    return O32_GetViewportExtEx(arg1, arg2);
    15061506}
     
    15091509BOOL WIN32API GetViewportOrgEx( HDC arg1, PPOINT  arg2)
    15101510{
    1511     dprintf(("GDI32: OS2GetViewportOrgEx"));
     1511    dprintf(("GDI32: GetViewportOrgEx"));
    15121512    return O32_GetViewportOrgEx(arg1, arg2);
    15131513}
     
    15161516UINT WIN32API GetWinMetaFileBits( HENHMETAFILE arg1, UINT arg2, PBYTE arg3, int arg4, HDC arg5)
    15171517{
    1518     dprintf(("GDI32: OS2GetWinMetaFileBits"));
     1518    dprintf(("GDI32: GetWinMetaFileBits"));
    15191519    return O32_GetWinMetaFileBits(arg1, arg2, arg3, arg4, arg5);
    15201520}
     
    15231523BOOL WIN32API GetWindowOrgEx( HDC arg1, PPOINT  arg2)
    15241524{
    1525     dprintf(("GDI32: OS2GetWindowOrgEx"));
     1525    dprintf(("GDI32: GetWindowOrgEx"));
    15261526    return O32_GetWindowOrgEx(arg1, arg2);
    15271527}
     
    15301530BOOL WIN32API GetWorldTransform( HDC arg1, LPXFORM  arg2)
    15311531{
    1532     dprintf(("GDI32: OS2GetWorldTransform"));
     1532    dprintf(("GDI32: GetWorldTransform"));
    15331533    return O32_GetWorldTransform(arg1, arg2);
    15341534}
     
    15401540
    15411541  rc = O32_IntersectClipRect(arg1, arg2, arg3, arg4, arg5);
    1542   dprintf(("GDI32: OS2IntersectClipRect returned %d\n", rc));
     1542  dprintf(("GDI32: IntersectClipRect returned %d\n", rc));
    15431543  return(rc);
    15441544}
     
    15471547BOOL WIN32API InvertRgn( HDC arg1, HRGN  arg2)
    15481548{
    1549     dprintf(("GDI32: OS2InvertRgn"));
     1549    dprintf(("GDI32: InvertRgn"));
    15501550    return O32_InvertRgn(arg1, arg2);
    15511551}
     
    15541554BOOL WIN32API LPtoDP( HDC arg1, PPOINT arg2, int  arg3)
    15551555{
    1556     dprintf(("GDI32: OS2LPtoDP"));
     1556    dprintf(("GDI32: LPtoDP"));
    15571557    return O32_LPtoDP(arg1, arg2, arg3);
    15581558}
     
    15651565 POINT startPt,endPt;
    15661566
    1567   dprintf(("GDI32: OS2LineDDA\n"));
     1567  dprintf(("GDI32: LineDDA\n"));
    15681568
    15691569  //CB: don't know if Open32 reports the last pixel, but all other line functions do
    15701570  startPt.x = nXStart;
    15711571  startPt.y = nYStart;
    1572   endPt = OS2ToWin32LineEnd(startPt,nXEnd,nYEnd);
     1572  endPt = ToWin32LineEnd(startPt,nXEnd,nYEnd);
    15731573
    15741574  rc = O32_LineDDA(startPt.x,startPt.y,endPt.x,endPt.y,callback->GetOS2Callback(),(LPARAM)callback);
     
    15811581BOOL 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)
    15821582{
    1583     dprintf(("GDI32: OS2MaskBlt"));
     1583    dprintf(("GDI32: MaskBlt"));
    15841584    return O32_MaskBlt(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
    15851585}
     
    15881588BOOL WIN32API ModifyWorldTransform( HDC arg1, const XFORM *arg2, DWORD  arg3)
    15891589{
    1590     dprintf(("GDI32: OS2ModifyWorldTransform"));
     1590    dprintf(("GDI32: ModifyWorldTransform"));
    15911591    return O32_ModifyWorldTransform(arg1, (LPXFORM)arg2, arg3);
    15921592}
     
    15951595int WIN32API OffsetClipRgn( HDC arg1, int arg2, int  arg3)
    15961596{
    1597     dprintf(("GDI32: OS2OffsetClipRgn"));
     1597    dprintf(("GDI32: OffsetClipRgn"));
    15981598    return O32_OffsetClipRgn(arg1, arg2, arg3);
    15991599}
     
    16021602int WIN32API OffsetRgn( HRGN arg1, int arg2, int  arg3)
    16031603{
    1604     dprintf(("GDI32: OS2OffsetRgn"));
     1604    dprintf(("GDI32: OffsetRgn"));
    16051605    return O32_OffsetRgn(arg1, arg2, arg3);
    16061606}
     
    16091609BOOL WIN32API OffsetViewportOrgEx( HDC arg1, int arg2, int arg3, PPOINT  arg4)
    16101610{
    1611     dprintf(("GDI32: OS2OffsetViewportOrgEx"));
     1611    dprintf(("GDI32: OffsetViewportOrgEx"));
    16121612    return O32_OffsetViewportOrgEx(arg1, arg2, arg3, arg4);
    16131613}
     
    16161616BOOL WIN32API OffsetWindowOrgEx( HDC arg1, int arg2, int arg3, PPOINT  arg4)
    16171617{
    1618     dprintf(("GDI32: OS2OffsetWindowOrgEx"));
     1618    dprintf(("GDI32: OffsetWindowOrgEx"));
    16191619    return O32_OffsetWindowOrgEx(arg1, arg2, arg3, arg4);
    16201620}
     
    16231623BOOL WIN32API PaintRgn( HDC arg1, HRGN  arg2)
    16241624{
    1625     dprintf(("GDI32: OS2PaintRgn"));
     1625    dprintf(("GDI32: PaintRgn"));
    16261626    return O32_PaintRgn(arg1, arg2);
    16271627}
     
    16301630HRGN WIN32API PathToRegion( HDC arg1)
    16311631{
    1632     dprintf(("GDI32: OS2PathToRegion"));
     1632    dprintf(("GDI32: PathToRegion"));
    16331633    return O32_PathToRegion(arg1);
    16341634}
     
    16391639                  int nYRadial2)
    16401640{
    1641     dprintf(("GDI32: OS2Pie"));
     1641    dprintf(("GDI32: Pie"));
    16421642    //CB: bug in O32_Pie
    16431643    if (nXRadial1 == nXRadial2 && nYRadial1 == nYRadial2)
     
    16501650BOOL WIN32API PlayEnhMetaFile( HDC arg1, HENHMETAFILE arg2, const RECT *  arg3)
    16511651{
    1652     dprintf(("GDI32: OS2PlayEnhMetaFile"));
     1652    dprintf(("GDI32: PlayEnhMetaFile"));
    16531653    return O32_PlayEnhMetaFile(arg1, arg2, arg3);
    16541654}
     
    16571657BOOL WIN32API PlayMetaFile( HDC arg1, HMETAFILE  arg2)
    16581658{
    1659     dprintf(("GDI32: OS2PlayMetaFile"));
     1659    dprintf(("GDI32: PlayMetaFile"));
    16601660    return O32_PlayMetaFile(arg1, arg2);
    16611661}
     
    16641664BOOL WIN32API PlayMetaFileRecord( HDC arg1, LPHANDLETABLE arg2, LPMETARECORD arg3, UINT  arg4)
    16651665{
    1666     dprintf(("GDI32: OS2PlayMetaFileRecord"));
     1666    dprintf(("GDI32: PlayMetaFileRecord"));
    16671667    return O32_PlayMetaFileRecord(arg1, arg2, arg3, (int)arg4);
    16681668}
     
    16711671BOOL WIN32API PolyBezier( HDC arg1, const POINT * arg2, DWORD  arg3)
    16721672{
    1673     dprintf(("GDI32: OS2PolyBezier"));
     1673    dprintf(("GDI32: PolyBezier"));
    16741674    return O32_PolyBezier(arg1, arg2, (int)arg3);
    16751675}
     
    16781678BOOL WIN32API PolyBezierTo( HDC arg1, const POINT * arg2, DWORD  arg3)
    16791679{
    1680     dprintf(("GDI32: OS2PolyBezierTo"));
     1680    dprintf(("GDI32: PolyBezierTo"));
    16811681    return O32_PolyBezierTo(arg1, arg2, arg3);
    16821682}
     
    16851685BOOL WIN32API PolyDraw( HDC arg1, const POINT * arg2, const BYTE * arg3, DWORD  arg4)
    16861686{
    1687     dprintf(("GDI32: OS2PolyDraw"));
     1687    dprintf(("GDI32: PolyDraw"));
    16881688    return O32_PolyDraw(arg1, arg2, arg3, arg4);
    16891689}
     
    16921692BOOL WIN32API PolyPolygon( HDC arg1, const POINT * arg2, const INT * arg3, UINT  arg4)
    16931693{
    1694     dprintf(("GDI32: OS2PolyPolygon"));
     1694    dprintf(("GDI32: PolyPolygon"));
    16951695    return O32_PolyPolygon(arg1, arg2, arg3, arg4);
    16961696}
     
    16991699BOOL WIN32API PolyPolyline( HDC hdc, const POINT * lppt, const DWORD * lpdwPolyPoints, DWORD cCount)
    17001700{
    1701     dprintf(("GDI32: OS2PolyPolyline"));
     1701    dprintf(("GDI32: PolyPolyline"));
    17021702
    17031703    return O32_PolyPolyline(hdc,lppt,lpdwPolyPoints,cCount);
     
    17071707BOOL WIN32API Polygon( HDC arg1, const POINT * arg2, int  arg3)
    17081708{
    1709     dprintf(("GDI32: OS2Polygon"));
     1709    dprintf(("GDI32: Polygon"));
    17101710    return O32_Polygon(arg1, arg2, arg3);
    17111711}
     
    17141714BOOL WIN32API Polyline( HDC hdc, const POINT *lppt, int cPoints)
    17151715{
    1716     dprintf(("GDI32: OS2Polyline"));
     1716    dprintf(("GDI32: Polyline"));
    17171717
    17181718    if (cPoints == 0) return TRUE;
     
    17361736    BOOL rc;
    17371737
    1738     points[cPoints-1] = OS2ToWin32LineEnd(lppt[cPoints-2],lastPt.x,lastPt.y);
     1738    points[cPoints-1] = ToWin32LineEnd(lppt[cPoints-2],lastPt.x,lastPt.y);
    17391739    rc = O32_Polyline(hdc,lppt,cPoints);
    17401740    points[cPoints-1] = lastPt;
     
    17461746BOOL WIN32API PolylineTo( HDC hdc, const POINT * lppt, DWORD cCount)
    17471747{
    1748     dprintf(("GDI32: OS2PolylineTo"));
     1748    dprintf(("GDI32: PolylineTo"));
    17491749
    17501750    if (cCount == 0) return TRUE;
     
    17621762    BOOL rc;
    17631763
    1764     points[cCount-1] = OS2ToWin32LineEnd(lppt[cCount-2],lastPt.x,lastPt.y);
     1764    points[cCount-1] = ToWin32LineEnd(lppt[cCount-2],lastPt.x,lastPt.y);
    17651765    rc = O32_PolylineTo(hdc,lppt,cCount);
    17661766    points[cCount-1] = lastPt;
     
    17731773BOOL WIN32API PtInRegion( HRGN arg1, int arg2, int  arg3)
    17741774{
    1775     dprintf(("GDI32: OS2PtInRegion"));
     1775    dprintf(("GDI32: PtInRegion"));
    17761776    return O32_PtInRegion(arg1, arg2, arg3);
    17771777}
     
    17801780BOOL WIN32API PtVisible( HDC arg1, int arg2, int  arg3)
    17811781{
    1782     dprintf(("GDI32: OS2PtVisible"));
     1782    dprintf(("GDI32: PtVisible"));
    17831783    return O32_PtVisible(arg1, arg2, arg3);
    17841784}
     
    17871787BOOL WIN32API RectInRegion( HRGN arg1, const RECT *  arg2)
    17881788{
    1789     dprintf(("GDI32: OS2RectInRegion"));
     1789    dprintf(("GDI32: RectInRegion"));
    17901790    return O32_RectInRegion(arg1, arg2);
    17911791}
     
    17941794BOOL WIN32API RectVisible( HDC arg1, const RECT * arg2)
    17951795{
    1796     dprintf(("GDI32: OS2RectVisible\n"));
     1796    dprintf(("GDI32: RectVisible\n"));
    17971797    return O32_RectVisible(arg1, arg2);
    17981798}
     
    18011801HDC WIN32API ResetDCA( HDC arg1, const DEVMODEA *  arg2)
    18021802{
    1803     dprintf(("GDI32: OS2ResetDCA\n"));
     1803    dprintf(("GDI32: ResetDCA\n"));
    18041804    return (HDC)O32_ResetDC(arg1, arg2);
    18051805}
     
    18081808HDC WIN32API ResetDCW( HDC arg1, const DEVMODEW *  arg2)
    18091809{
    1810     dprintf(("GDI32: OS2ResetDCW\n"));
     1810    dprintf(("GDI32: ResetDCW\n"));
    18111811    // NOTE: This will not work as is (needs UNICODE support)
    18121812    return (HDC)O32_ResetDC(arg1, (const DEVMODEA *)arg2);
     
    18161816BOOL WIN32API ResizePalette( HPALETTE arg1, UINT  arg2)
    18171817{
    1818     dprintf(("GDI32: OS2ResizePalette\n"));
     1818    dprintf(("GDI32: ResizePalette\n"));
    18191819    return O32_ResizePalette(arg1, arg2);
    18201820}
     
    18231823BOOL WIN32API RestoreDC( HDC arg1, int  arg2)
    18241824{
    1825     dprintf(("GDI32: OS2RestoreDC\n"));
     1825    dprintf(("GDI32: RestoreDC\n"));
    18261826    return O32_RestoreDC(arg1, arg2);
    18271827}
     
    18301830BOOL WIN32API RoundRect( HDC arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int  arg7)
    18311831{
    1832     dprintf(("GDI32: OS2RoundRect"));
     1832    dprintf(("GDI32: RoundRect"));
    18331833    return O32_RoundRect(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
    18341834}
     
    18371837int WIN32API SaveDC( HDC arg1)
    18381838{
    1839     dprintf(("GDI32: OS2SaveDC"));
     1839    dprintf(("GDI32: SaveDC"));
    18401840    return O32_SaveDC(arg1);
    18411841}
     
    18441844BOOL WIN32API ScaleViewportExtEx( HDC arg1, int arg2, int arg3, int arg4, int arg5, PSIZE  arg6)
    18451845{
    1846     dprintf(("GDI32: OS2ScaleViewportExtEx"));
     1846    dprintf(("GDI32: ScaleViewportExtEx"));
    18471847    return O32_ScaleViewportExtEx(arg1, arg2, arg3, arg4, arg5, arg6);
    18481848}
     
    18511851BOOL WIN32API ScaleWindowExtEx( HDC arg1, int arg2, int arg3, int arg4, int arg5, PSIZE  arg6)
    18521852{
    1853     dprintf(("GDI32: OS2ScaleWindowExtEx"));
     1853    dprintf(("GDI32: ScaleWindowExtEx"));
    18541854    return O32_ScaleWindowExtEx(arg1, arg2, arg3, arg4, arg5, arg6);
    18551855}
     
    18581858int WIN32API SelectClipRgn( HDC arg1, HRGN  arg2)
    18591859{
    1860     dprintf(("GDI32: OS2SelectClipRgn"));
     1860    dprintf(("GDI32: SelectClipRgn"));
    18611861    return O32_SelectClipRgn(arg1, arg2);
    18621862}
     
    18651865int WIN32API SetArcDirection( HDC arg1, int  arg2)
    18661866{
    1867     dprintf(("GDI32: OS2SetArcDirection"));
     1867    dprintf(("GDI32: SetArcDirection"));
    18681868    return O32_SetArcDirection(arg1, arg2);
    18691869}
     
    18721872LONG WIN32API SetBitmapBits( HBITMAP arg1, LONG arg2, const VOID *  arg3)
    18731873{
    1874     dprintf(("GDI32: OS2SetBitmapBits"));
     1874    dprintf(("GDI32: SetBitmapBits"));
    18751875    return O32_SetBitmapBits(arg1, (DWORD)arg2, arg3);
    18761876}
     
    18791879BOOL WIN32API SetBitmapDimensionEx( HBITMAP arg1, int arg2, int arg3, PSIZE  arg4)
    18801880{
    1881     dprintf(("GDI32: OS2SetBitmapDimensionEx"));
     1881    dprintf(("GDI32: SetBitmapDimensionEx"));
    18821882    return O32_SetBitmapDimensionEx(arg1, arg2, arg3, arg4);
    18831883}
     
    18861886UINT WIN32API SetBoundsRect( HDC arg1, const RECT * arg2, UINT arg3)
    18871887{
    1888     dprintf(("GDI32: OS2SetBoundsRect"));
     1888    dprintf(("GDI32: SetBoundsRect"));
    18891889    return O32_SetBoundsRect(arg1, arg2, arg3);
    18901890}
     
    18961896
    18971897    rc = O32_SetBrushOrgEx(arg1, arg2, arg3, arg4);
    1898     dprintf(("GDI32: OS2SetBrushOrgEx returned %d\n", rc));
     1898    dprintf(("GDI32: SetBrushOrgEx returned %d\n", rc));
    18991899    return(rc);
    19001900}
     
    19031903int WIN32API SetDIBits( HDC arg1, HBITMAP arg2, UINT arg3, UINT arg4, const VOID * arg5, const BITMAPINFO * arg6, UINT  arg7)
    19041904{
    1905     dprintf(("GDI32: OS2SetDIBits\n"));
     1905    dprintf(("GDI32: SetDIBits\n"));
    19061906    return O32_SetDIBits(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
    19071907}
     
    19131913    char *ptr;
    19141914
    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",
    19161916                 hdc, xDest, yDest, cx, cy, xSrc, ySrc, startscan, lines, (LPVOID) bits, (PBITMAPINFO)info, coloruse));
    19171917
     
    19381938HENHMETAFILE WIN32API SetEnhMetaFileBits( UINT arg1, const BYTE *  arg2)
    19391939{
    1940     dprintf(("GDI32: OS2SetEnhMetaFileBits"));
     1940    dprintf(("GDI32: SetEnhMetaFileBits"));
    19411941    return O32_SetEnhMetaFileBits(arg1, arg2);
    19421942}
     
    19451945int WIN32API SetGraphicsMode(HDC arg1, int  arg2)
    19461946{
    1947     dprintf(("GDI32: OS2SetGraphicsMode"));
     1947    dprintf(("GDI32: SetGraphicsMode"));
    19481948    return O32_SetGraphicsMode(arg1, arg2);
    19491949}
     
    19521952int WIN32API SetMapMode( HDC arg1, int  arg2)
    19531953{
    1954     dprintf(("GDI32: OS2SetMapMode"));
     1954    dprintf(("GDI32: SetMapMode"));
    19551955    return O32_SetMapMode(arg1, arg2);
    19561956}
     
    19591959DWORD WIN32API SetMapperFlags( HDC arg1, DWORD  arg2)
    19601960{
    1961     dprintf(("GDI32: OS2SetMapperFlags"));
     1961    dprintf(("GDI32: SetMapperFlags"));
    19621962    return O32_SetMapperFlags(arg1, arg2);
    19631963}
     
    19661966HMETAFILE WIN32API SetMetaFileBitsEx( UINT arg1, const BYTE * arg2)
    19671967{
    1968     dprintf(("GDI32: OS2SetMetaFileBitsEx"));
     1968    dprintf(("GDI32: SetMetaFileBitsEx"));
    19691969    return O32_SetMetaFileBitsEx(arg1, (PBYTE)arg2);
    19701970}
     
    19731973BOOL WIN32API SetMiterLimit( HDC arg1, float  arg2, float *  arg3)
    19741974{
    1975     dprintf(("GDI32: OS2SetMiterLimit"));
     1975    dprintf(("GDI32: SetMiterLimit"));
    19761976    return O32_SetMiterLimit(arg1, arg2, arg3);
    19771977}
     
    19801980UINT WIN32API SetPaletteEntries( HPALETTE arg1, UINT arg2, UINT arg3, PALETTEENTRY * arg4)
    19811981{
    1982     dprintf(("GDI32: OS2SetPaletteEntries"));
     1982    dprintf(("GDI32: SetPaletteEntries"));
    19831983    return O32_SetPaletteEntries(arg1, arg2, arg3, (const PALETTEENTRY *)arg4);
    19841984}
     
    19871987int WIN32API SetPolyFillMode( HDC arg1, int  arg2)
    19881988{
    1989     dprintf(("GDI32: OS2SetPolyFillMode"));
     1989    dprintf(("GDI32: SetPolyFillMode"));
    19901990    return O32_SetPolyFillMode(arg1, arg2);
    19911991}
     
    19941994BOOL WIN32API SetRectRgn( HRGN arg1, int arg2, int arg3, int arg4, int  arg5)
    19951995{
    1996     dprintf(("GDI32: OS2SetRectRgn"));
     1996    dprintf(("GDI32: SetRectRgn"));
    19971997    return O32_SetRectRgn(arg1, arg2, arg3, arg4, arg5);
    19981998}
     
    20012001UINT WIN32API SetTextAlign( HDC arg1, UINT  arg2)
    20022002{
    2003     dprintf(("GDI32: OS2SetTextAlign"));
     2003    dprintf(("GDI32: SetTextAlign"));
    20042004    return O32_SetTextAlign(arg1, arg2);
    20052005}
     
    20082008int WIN32API SetTextCharacterExtra( HDC arg1, int  arg2)
    20092009{
    2010     dprintf(("GDI32: OS2SetTextCharacterExtra"));
     2010    dprintf(("GDI32: SetTextCharacterExtra"));
    20112011    return O32_SetTextCharacterExtra(arg1, arg2);
    20122012}
     
    20152015BOOL WIN32API SetTextJustification( HDC arg1, int arg2, int  arg3)
    20162016{
    2017     dprintf(("GDI32: OS2SetTextJustification"));
     2017    dprintf(("GDI32: SetTextJustification"));
    20182018    return O32_SetTextJustification(arg1, arg2, arg3);
    20192019}
     
    20222022BOOL WIN32API SetViewportExtEx( HDC arg1, int arg2, int arg3, PSIZE  arg4)
    20232023{
    2024     dprintf(("GDI32: OS2SetViewportExtEx"));
     2024    dprintf(("GDI32: SetViewportExtEx"));
    20252025    return O32_SetViewportExtEx(arg1, arg2, arg3, arg4);
    20262026}
     
    20292029BOOL WIN32API SetViewportOrgEx( HDC arg1, int arg2, int arg3, PPOINT  arg4)
    20302030{
    2031     dprintf(("GDI32: OS2SetViewportOrgEx"));
     2031    dprintf(("GDI32: SetViewportOrgEx"));
    20322032    return O32_SetViewportOrgEx(arg1, arg2, arg3, arg4);
    20332033}
     
    20362036HENHMETAFILE WIN32API SetWinMetaFileBits( UINT arg1, const BYTE * arg2, HDC arg3, const METAFILEPICT *  arg4)
    20372037{
    2038     dprintf(("GDI32: OS2SetWinMetaFileBits"));
     2038    dprintf(("GDI32: SetWinMetaFileBits"));
    20392039    return O32_SetWinMetaFileBits(arg1, arg2, arg3, arg4);
    20402040}
     
    20432043BOOL WIN32API SetWindowExtEx( HDC arg1, int arg2, int arg3, PSIZE  arg4)
    20442044{
    2045     dprintf(("GDI32: OS2SetWindowExtEx"));
     2045    dprintf(("GDI32: SetWindowExtEx"));
    20462046    return O32_SetWindowExtEx(arg1, arg2, arg3, arg4);
    20472047}
     
    20502050BOOL WIN32API SetWindowOrgEx( HDC arg1, int arg2, int arg3, PPOINT  arg4)
    20512051{
    2052     dprintf(("GDI32: OS2SetWindowOrgEx"));
     2052    dprintf(("GDI32: SetWindowOrgEx"));
    20532053    return O32_SetWindowOrgEx(arg1, arg2, arg3, arg4);
    20542054}
     
    20572057BOOL WIN32API SetWorldTransform( HDC arg1, const XFORM *arg2)
    20582058{
    2059     dprintf(("GDI32: OS2SetWorldTransform"));
     2059    dprintf(("GDI32: SetWorldTransform"));
    20602060    return O32_SetWorldTransform(arg1, (LPXFORM)arg2);
    20612061}
     
    20642064INT WIN32API StartDocA( HDC arg1, const DOCINFOA *arg2)
    20652065{
    2066     dprintf(("GDI32: OS2StartDocA"));
     2066    dprintf(("GDI32: StartDocA"));
    20672067    return O32_StartDoc(arg1, (LPDOCINFOA)arg2);
    20682068}
     
    20712071INT WIN32API StartDocW( HDC arg1, const DOCINFOW *arg2)
    20722072{
    2073     dprintf(("GDI32: OS2StartDocW STUB"));
     2073    dprintf(("GDI32: StartDocW STUB"));
    20742074    // NOTE: This will not work as is (needs UNICODE support)
    20752075//    return O32_StartDoc(arg1, arg2);
     
    20802080int WIN32API StartPage( HDC arg1)
    20812081{
    2082     dprintf(("GDI32: OS2StartPage"));
     2082    dprintf(("GDI32: StartPage"));
    20832083    return O32_StartPage(arg1);
    20842084}
     
    20902090 BOOL  rc;
    20912091
    2092     dprintf(("GDI32: OS2TextOutW"));
     2092    dprintf(("GDI32: TextOutW"));
    20932093    // NOTE: This will not work as is (needs UNICODE support)
    20942094    rc = O32_TextOut(arg1, arg2, arg3, astring, arg5);
     
    21002100BOOL WIN32API UnrealizeObject( HGDIOBJ arg1)
    21012101{
    2102     dprintf(("GDI32: OS2UnrealizeObject"));
     2102    dprintf(("GDI32: UnrealizeObject"));
    21032103    return O32_UnrealizeObject(arg1);
    21042104}
     
    21072107BOOL WIN32API WidenPath( HDC arg1)
    21082108{
    2109     dprintf(("GDI32: OS2WidenPath"));
     2109    dprintf(("GDI32: WidenPath"));
    21102110    return O32_WidenPath(arg1);
    21112111}
     
    21152115HBITMAP WIN32API CreateDiscardableBitmap(HDC hDC, int nWidth, int nHeight)
    21162116{
    2117     dprintf(("GDI32: OS2CreateDisardableBitmap\n"));
     2117    dprintf(("GDI32: CreateDisardableBitmap\n"));
    21182118    return O32_CreateCompatibleBitmap(hDC, nWidth, nHeight);
    21192119}
     
    21232123int WIN32API SetAbortProc(HDC hdc, ABORTPROC lpAbortProc)
    21242124{
    2125   dprintf(("GDI32: OS2SetAbortProc - stub (1)w\n"));
     2125  dprintf(("GDI32: SetAbortProc - stub (1)w\n"));
    21262126  return(1);
    21272127}
     
    21322132UINT WIN32API GetTextCharset(HDC hdc)
    21332133{
    2134   dprintf(("GDI32: OS2GetTextCharset, not complete\n"));
     2134  dprintf(("GDI32: GetTextCharset, not complete\n"));
    21352135  return(ANSI_CHARSET);
    21362136}
     
    21422142BOOL WIN32API SelectClipPath(HDC hdc, int iMode)
    21432143{
    2144   dprintf(("GDI32: OS2SelectClipPath, not implemented!(TRUE)\n"));
     2144  dprintf(("GDI32: SelectClipPath, not implemented!(TRUE)\n"));
    21452145  return(TRUE);
    21462146}
     
    21522152BOOL WIN32API SetColorAdjustment(HDC hdc, CONST COLORADJUSTMENT *lpca)
    21532153{
    2154   dprintf(("GDI32: OS2SetColorAdjustment, not implemented!(TRUE)\n"));
     2154  dprintf(("GDI32: SetColorAdjustment, not implemented!(TRUE)\n"));
    21552155  return(TRUE);
    21562156}
     
    21642164 BOOL    fFlip = 0;
    21652165
    2166   dprintf(("GDI32: OS2CreateDIBSection, partly implemented!\n"));
     2166  dprintf(("GDI32: CreateDIBSection %x %x %x %d", hdc, iUsage, hSection, dwOffset));
    21672167  if(hSection) {
    2168         dprintf(("GDI32: OS2CreateDIBSection, hSection != NULL, not supported!\n"));
     2168        dprintf(("GDI32: CreateDIBSection, hSection != NULL, not supported!\n"));
    21692169        return NULL;
    21702170  }
     
    22362236 DIBSection *dsect = DIBSection::findHDC(hdc);
    22372237
    2238   dprintf(("GDI32: OS2SetDIBColorTable\n"));
     2238  dprintf(("GDI32: SetDIBColorTable\n"));
    22392239  if(dsect) {
    22402240        return(dsect->SetDIBColorTable(uStartIndex, cEntries, pColors));
     
    22462246HPALETTE WIN32API CreateHalftonePalette(HDC hdc)
    22472247{
    2248     dprintf(("GDI32: OS2CreateHalftonePalette, not implemented\n"));
     2248    dprintf(("GDI32: CreateHalftonePalette, not implemented\n"));
    22492249    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);
    22572250}
    22582251//******************************************************************************
     
    22622255BOOL WIN32API UpdateColors(HDC hdc)
    22632256{
    2264   dprintf(("GDI32: OS2UpdateColors\n"));
     2257  dprintf(("GDI32: UpdateColors\n"));
    22652258  return O32_InvalidateRect(O32_WindowFromDC(hdc), NULL, FALSE);
    22662259}
Note: See TracChangeset for help on using the changeset viewer.