Changeset 9429 for trunk/src


Ignore:
Timestamp:
Nov 26, 2002, 11:53:12 AM (23 years ago)
Author:
sandervl
Message:

Added debug wrappers for all exports

Location:
trunk/src/gdi32
Files:
2 added
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/blit.cpp

    r9355 r9429  
    1 /* $Id: blit.cpp,v 1.40 2002-10-28 12:21:51 sandervl Exp $ */
     1/* $Id: blit.cpp,v 1.41 2002-11-26 10:53:06 sandervl Exp $ */
    22
    33/*
     
    4747            rc  = dsect->BitBlt(hdcDest, nXOriginDest, nYOriginDest, nWidthDest, nHeightDest,
    4848                                nXOriginSrc, nYOriginSrc, nWidthSrc, nHeightSrc, dwRop);
    49             dprintf(("GDI32: StretchBlt returned %d", rc));
    5049            return rc;
    5150        }
     
    330329    }
    331330    return rc;
    332 
    333 //SvL: Breaks startup bitmap of Acrobat Reader 4.05
    334 #if 0
    335     else
    336     if(info->bmiHeader.biBitCount == 8 && info->bmiHeader.biCompression == 0 && !(GetDeviceCaps( hdc, RASTERCAPS ) & RC_PALETTE)) {
    337         INT rc = 0;
    338         // convert 8bit to 24bit
    339 
    340         BITMAPINFO newInfo;
    341         newInfo.bmiHeader = info->bmiHeader;
    342         newInfo.bmiHeader.biBitCount = 24;
    343         long lLineByte24 = ((newInfo.bmiHeader.biWidth * 24 + 31) / 32) * 4;
    344         long lLineByte8  = ((newInfo.bmiHeader.biWidth *  8 + 31) / 32) * 4;
    345         long lHeight   = newInfo.bmiHeader.biHeight;
    346         if(lHeight < 0) lHeight = -lHeight;
    347 
    348         char *newBits = (char *)malloc( lLineByte24 * lHeight );
    349         if(newBits) {
    350             //
    351             // Get Palette Entries
    352             //
    353             PALETTEENTRY aEntries[256];
    354             LOGPALETTE *pLog = (LOGPALETTE *)malloc( sizeof(LOGPALETTE) + sizeof(PALETTEENTRY) * 256 );
    355             pLog->palVersion = 0x300;
    356             pLog->palNumEntries = 256;
    357 
    358             HPALETTE hPaletteDummy = CreatePalette( pLog );
    359             free( pLog );
    360             HPALETTE hPalette = SelectPalette( hdc, hPaletteDummy, FALSE );
    361             GetPaletteEntries( hPalette, 0, 255, aEntries  );
    362             SelectPalette( hdc, hPalette, FALSE );
    363             DeleteObject( hPaletteDummy );
    364 
    365             //
    366             // convert 8bit to 24bit
    367             //
    368             if(newInfo.bmiHeader.biHeight > 0) {
    369                 unsigned char *pbSrc = (unsigned char *)bits;
    370                 unsigned char *pbDst = (unsigned char *)newBits;
    371                 for(int y = 0; y < lHeight; y++) {
    372                     for(int x = 0; x < newInfo.bmiHeader.biWidth; x++) {
    373                         PALETTEENTRY src = aEntries[pbSrc[x]];
    374                         pbDst[x * 3 + 0] = src.peBlue;
    375                         pbDst[x * 3 + 1] = src.peGreen;
    376                         pbDst[x * 3 + 2] = src.peRed;
    377                     }
    378                     pbDst += lLineByte24;
    379                     pbSrc += lLineByte8;
    380                 }
    381             } else {
    382                 // upside down
    383                 newInfo.bmiHeader.biHeight = -info->bmiHeader.biHeight;
    384                 unsigned char *pbSrc = (unsigned char *)bits + lLineByte8 * (lHeight - 1);
    385                 unsigned char *pbDst = (unsigned char *)newBits;
    386                 for(int y = 0; y < lHeight; y++) {
    387                     for(int x = 0; x < newInfo.bmiHeader.biWidth; x++) {
    388                         PALETTEENTRY src = aEntries[pbSrc[x]];
    389                         pbDst[x * 3 + 0] = src.peBlue;
    390                         pbDst[x * 3 + 1] = src.peGreen;
    391                         pbDst[x * 3 + 2] = src.peRed;
    392                     }
    393                     pbDst += lLineByte24;
    394                     pbSrc -= lLineByte8;
    395                 }
    396             }
    397             rc = SetDIBitsToDevice_( hdc, xDest, yDest, cx, cy, xSrc, ySrc, startscan, lines, (void *)newBits, &newInfo, DIB_RGB_COLORS );
    398             free( newBits );
    399         }
    400         return rc;
    401     }
    402 #endif
    403331}
    404332//******************************************************************************
     
    427355            }
    428356    }
    429 
    430     dprintf(("GDI32: PatBlt hdc %x (%d,%d) (%d,%d) returned %d\n",hdc, nXLeft,nYLeft,nWidth,nHeight,rc));
    431357    return(rc);
    432358}
     
    435361BOOL 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)
    436362{
    437     dprintf(("GDI32: MaskBlt"));
    438363    return O32_MaskBlt(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
    439364}
     
    541466                                     xSrc, ySrc)/sizeof(WORD);
    542467        newbits = (WORD *) HeapAlloc(GetProcessHeap(), 0, imgsize);
     468//bugbug (too much)
     469//bugbug
    543470        if(CPUFeatures & CPUID_MMX) {
    544471             RGB555to565MMX(newbits, (WORD *)bits+offset, imgsize/sizeof(WORD));
     
    548475        bits = newbits;
    549476    }
    550     //SvL: Ignore BI_BITFIELDS type (SetDIBitsToDevice fails otherwise)
     477    //SvL: Ignore BI_BITFIELDS type (StretchDIBits fails otherwise)
    551478    if(info->bmiHeader.biCompression == BI_BITFIELDS) {
    552479        ((BITMAPINFO *)info)->bmiHeader.biCompression = 0;
     
    629556int WIN32API SetStretchBltMode( HDC arg1, int  arg2)
    630557{
    631   dprintf(("GDI32: SetStretchBltMode 0x%08X, 0x%08X\n",arg1, arg2));
    632 
    633558    if(DIBSection::getSection() != NULL)
    634559    {
     
    645570int WIN32API GetStretchBltMode( HDC arg1)
    646571{
    647     dprintf(("GDI32: GetStretchBltMode"));
    648572    return O32_GetStretchBltMode(arg1);
    649573}
  • trunk/src/gdi32/dbglocal.cpp

    r8871 r9429  
    1 /* $Id: dbglocal.cpp,v 1.8 2002-07-15 10:02:28 sandervl Exp $ */
     1/* $Id: dbglocal.cpp,v 1.9 2002-11-26 10:53:07 sandervl Exp $ */
    22
    33/*
     
    4141"objhandle",
    4242"transform",
    43 "printer"
     43"printer",
     44"icm",
     45"trace"
    4446};
    4547//******************************************************************************
  • trunk/src/gdi32/dbglocal.h

    r6375 r9429  
    1 /* $Id: dbglocal.h,v 1.7 2001-07-20 15:35:57 sandervl Exp $ */
     1/* $Id: dbglocal.h,v 1.8 2002-11-26 10:53:07 sandervl Exp $ */
    22
    33/*
     
    4040#define DBG_transform       18
    4141#define DBG_printer         19
    42 #define DBG_MAXFILES        20
     42#define DBG_icm             20
     43#define DBG_trace           21
     44#define DBG_MAXFILES        22
    4345
    4446extern USHORT DbgEnabledGDI32[DBG_MAXFILES];
  • trunk/src/gdi32/dibitmap.cpp

    r9359 r9429  
    1 /* $Id: dibitmap.cpp,v 1.34 2002-10-28 13:24:44 sandervl Exp $ */
     1/* $Id: dibitmap.cpp,v 1.35 2002-11-26 10:53:07 sandervl Exp $ */
    22
    33/*
     
    159159
    160160    hBitmap = O32_CreateCompatibleBitmap(hdc, nWidth, nHeight);
    161     dprintf(("GDI32: CreateCompatibleBitmap %x (%d,%d) returned %x", hdc, nWidth, nHeight, hBitmap));
    162161    if(hBitmap) {
    163162        STATS_CreateCompatibleBitmap(hBitmap,hdc, nWidth, nHeight);
     
    186185
    187186    hBitmap = O32_CreateBitmap(nWidth, nHeight, cPlanes, cBitsPerPel, lpvBits);
    188     dprintf(("GDI32: CreateBitmap (%d,%d) bps %d returned %x", nWidth, nHeight, cBitsPerPel, hBitmap));
    189187    if(hBitmap) STATS_CreateBitmap(hBitmap,nWidth, nHeight, cPlanes, cBitsPerPel, lpvBits);
    190 
    191188    return(hBitmap);
    192189}
     
    200197    hBitmap = O32_CreateBitmapIndirect(pBitmap);
    201198    if(hBitmap) STATS_CreateBitmapIndirect(hBitmap, pBitmap);
    202 
    203     dprintf(("GDI32: CreateBitmapIndirect returned %x", hBitmap));
    204199    return hBitmap;
    205200}
     
    374369{
    375370    int nrlines;
     371    pDCData pHps; 
     372    HDC hdcMem;
    376373
    377374    dprintf(("GDI32: GetDIBits %x %x %d %d %x %x (biBitCount %d) %d", hdc, hBitmap, uStartScan, cScanLines, lpvBits, lpbi, lpbi->bmiHeader.biBitCount, uUsage));
    378375
    379376    //SvL: WGSS screws up the DC if it's a memory DC
    380     //     TODO: Fix in WGSS
    381     HDC hdcMem = CreateCompatibleDC(0);
     377    //     TODO: Fix in WGSS (tries to select another bitmap in the DC which fails)
     378    pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     379    if(!pHps)
     380    {
     381        SetLastError(ERROR_INVALID_HANDLE);
     382        return 0;
     383    }
     384    if(pHps->isMemoryPS) {
     385          hdcMem = CreateCompatibleDC(0);
     386    }
     387    else  hdcMem = hdc;
    382388
    383389    if(lpbi->bmiHeader.biHeight < 0) {
     
    394400    }
    395401
    396     DeleteDC(hdcMem);
     402    if(pHps->isMemoryPS)
     403        DeleteDC(hdcMem);
    397404
    398405    if(lpvBits) {
     
    447454       nrlines = cScanLines;
    448455    }
    449     dprintf(("GDI32: GetDIBits returned %d", nrlines));
    450456    return nrlines;
    451457}
  • trunk/src/gdi32/font.cpp

    r8871 r9429  
    1 /* $Id: font.cpp,v 1.26 2002-07-15 10:02:28 sandervl Exp $ */
     1/* $Id: font.cpp,v 1.27 2002-11-26 10:53:08 sandervl Exp $ */
    22
    33/*
     
    147147//******************************************************************************
    148148//******************************************************************************
    149 ODINFUNCTIONNODBG14(HFONT,  CreateFontA, int,    nHeight,
    150                                     int,    nWidth,
    151                                     int,    nEscapement,
    152                                     int,    nOrientation,
    153                                     int,    fnWeight,
    154                                     DWORD,  fdwItalic,
    155                                     DWORD,  fdwUnderline,
    156                                     DWORD,  fdwStrikeOut,
    157                                     DWORD,  fdwCharSet,
    158                                     DWORD,  fdwOutputPrecision,
    159                                     DWORD,  fdwClipPrecision,
    160                                     DWORD,  fdwQuality,
    161                                     DWORD,  fdwPitchAndFamily,
    162                                     LPCSTR, lpszFace)
     149HFONT WIN32API CreateFontA(int  nHeight,
     150                           int    nWidth,
     151                           int    nEscapement,
     152                           int    nOrientation,
     153                           int    fnWeight,
     154                           DWORD  fdwItalic,
     155                           DWORD  fdwUnderline,
     156                           DWORD  fdwStrikeOut,
     157                           DWORD  fdwCharSet,
     158                           DWORD  fdwOutputPrecision,
     159                           DWORD  fdwClipPrecision,
     160                           DWORD  fdwQuality,
     161                           DWORD  fdwPitchAndFamily,
     162                           LPCSTR lpszFace)
    163163{
    164164  CHAR  lpstrFaceNew[LF_FACESIZE];
     
    201201//******************************************************************************
    202202//******************************************************************************
    203 ODINFUNCTIONNODBG14(HFONT,  CreateFontW,
    204                int,    nHeight,
    205                int,    nWidth,
    206                int,    nEscapement,
    207                int,    nOrientation,
    208                int,    fnWeight,
    209                DWORD,  fdwItalic,
    210                DWORD,  fdwUnderline,
    211                DWORD,  fdwStrikeOut,
    212                DWORD,  fdwCharSet,
    213                DWORD,  fdwOutputPrecision,
    214                DWORD,  fdwClipPrecision,
    215                DWORD,  fdwQuality,
    216                DWORD,  fdwPitchAndFamily,
    217                LPCWSTR,lpszFace)
     203HFONT WIN32API CreateFontW(int     nHeight,
     204                           int     nWidth,
     205                           int     nEscapement,
     206                           int     nOrientation,
     207                           int     fnWeight,
     208                           DWORD   fdwItalic,
     209                           DWORD   fdwUnderline,
     210                           DWORD   fdwStrikeOut,
     211                           DWORD   fdwCharSet,
     212                           DWORD   fdwOutputPrecision,
     213                           DWORD   fdwClipPrecision,
     214                           DWORD   fdwQuality,
     215                           DWORD   fdwPitchAndFamily,
     216                           LPCWSTR lpszFace)
    218217{
    219218  char *astring;
     
    249248//******************************************************************************
    250249//******************************************************************************
    251 ODINFUNCTION1(HFONT,CreateFontIndirectA,const LOGFONTA*, lplf)
     250HFONT WIN32API CreateFontIndirectA(const LOGFONTA* lplf)
    252251{
    253252  HFONT    hFont;
     
    284283//******************************************************************************
    285284//******************************************************************************
    286 ODINFUNCTION1(HFONT, CreateFontIndirectW,const LOGFONTW *, lplf)
     285HFONT WIN32API CreateFontIndirectW(const LOGFONTW * lplf)
    287286{
    288287  LOGFONTA afont;
     
    433432//******************************************************************************
    434433//******************************************************************************
    435 ODINFUNCTION4(int, EnumFontsA,
    436               HDC, hdc,
    437               LPCSTR, arg2,
    438               FONTENUMPROCA, arg3,
    439               LPARAM,  arg4)
     434int WIN32API EnumFontsA(HDC hdc,
     435                        LPCSTR arg2,
     436                        FONTENUMPROCA arg3,
     437                        LPARAM  arg4)
    440438{
    441439  //@@@PH shouldn't this rather be O32_EnumFonts ?
     
    444442//******************************************************************************
    445443//******************************************************************************
    446 ODINFUNCTION4(int, EnumFontsW,
    447               HDC, hdc,
    448               LPCWSTR, arg2,
    449               FONTENUMPROCW, arg3,
    450               LPARAM,  arg4)
     444int WIN32API EnumFontsW(HDC hdc,
     445                        LPCWSTR arg2,
     446                        FONTENUMPROCW arg3,
     447                        LPARAM  arg4)
    451448{
    452449  //@@@PH shouldn't this rather be O32_EnumFonts ?
     
    455452//******************************************************************************
    456453//******************************************************************************
    457 ODINFUNCTION4(int, EnumFontFamiliesA,
    458               HDC, hdc,
    459               LPCSTR, lpszFontFamily,
    460               FONTENUMPROCA, arg3,
    461               LPARAM, arg4)
     454int WIN32API EnumFontFamiliesA(HDC hdc,
     455                               LPCSTR lpszFontFamily,
     456                               FONTENUMPROCA arg3,
     457                               LPARAM arg4)
    462458{
    463459  ENUMUSERDATA enumData;
     
    478474//******************************************************************************
    479475//******************************************************************************
    480 ODINFUNCTION4(int, EnumFontFamiliesW,
    481               HDC, hdc,
    482               LPCWSTR, lpszFontFamilyW,
    483               FONTENUMPROCW, arg3,
    484               LPARAM, arg4)
     476int WIN32API EnumFontFamiliesW(HDC hdc,
     477                               LPCWSTR lpszFontFamilyW,
     478                               FONTENUMPROCW arg3,
     479                               LPARAM arg4)
    485480{
    486481  CHAR         lpstrFamilyNew[LF_FACESIZE] = "";
     
    503498//******************************************************************************
    504499//******************************************************************************
    505 ODINFUNCTION5(INT, EnumFontFamiliesExA,
    506               HDC, hdc,
    507               LPLOGFONTA, arg2,
    508               FONTENUMPROCEXA, arg3,
    509               LPARAM, arg4,
    510               DWORD, dwFlags)
     500INT WIN32API EnumFontFamiliesExA(HDC hdc,
     501                                 LPLOGFONTA arg2,
     502                                 FONTENUMPROCEXA arg3,
     503                                 LPARAM arg4,
     504                                 DWORD dwFlags)
    511505{
    512506  ENUMUSERDATA enumData;
     
    525519//******************************************************************************
    526520//******************************************************************************
    527 ODINFUNCTION5(INT, EnumFontFamiliesExW,
    528               HDC, hdc,
    529               LPLOGFONTW, arg2,
    530               FONTENUMPROCEXW, arg3,
    531               LPARAM, arg4,
    532               DWORD, dwFlags)
     521INT WIN32API EnumFontFamiliesExW(HDC hdc,
     522                                 LPLOGFONTW arg2,
     523                                 FONTENUMPROCEXW arg3,
     524                                 LPARAM arg4,
     525                                 DWORD dwFlags)
    533526{
    534527  ENUMUSERDATA enumData;
     
    549542//******************************************************************************
    550543//******************************************************************************
    551 ODINFUNCTION5(DWORD, GetFontData,
    552               HDC, hdc,
    553               DWORD, dwTable,
    554               DWORD, dwOffset,
    555               LPVOID, lpvBuffer,
    556               DWORD, dbData)
     544DWORD WIN32API GetFontData(HDC hdc, DWORD dwTable,
     545                           DWORD dwOffset,
     546                           LPVOID lpvBuffer,
     547                           DWORD dbData)
    557548{
    558549  dprintf(("GDI32: GetFontData, not implemented (GDI_ERROR)\n"));
     
    563554//******************************************************************************
    564555//******************************************************************************
    565 ODINFUNCTION1(int, AddFontResourceA,
    566               LPCSTR, szFont)
     556int WIN32API AddFontResourceA(LPCSTR szFont)
    567557{
    568558    HINSTANCE hInstance;
     
    579569//******************************************************************************
    580570//******************************************************************************
    581 ODINFUNCTION1(int, AddFontResourceW,
    582               LPCWSTR, szFont)
     571int WIN32API AddFontResourceW(LPCWSTR szFont)
    583572{
    584573 char *astring = UnicodeToAsciiString((LPWSTR)szFont);
     
    593582//******************************************************************************
    594583//******************************************************************************
    595 ODINFUNCTION1(BOOL, RemoveFontResourceA,
    596               LPCSTR, arg1)
     584BOOL WIN32API RemoveFontResourceA(LPCSTR arg1)
    597585{
    598586    dprintf(("GDI32: RemoveFontResourceA %s\n", arg1));
     
    601589//******************************************************************************
    602590//******************************************************************************
    603 ODINFUNCTION1(BOOL, RemoveFontResourceW,
    604               LPCWSTR, szFont)
     591BOOL WIN32API RemoveFontResourceW(LPCWSTR szFont)
    605592{
    606593 char *astring = UnicodeToAsciiString((LPWSTR)szFont);
     
    628615 *****************************************************************************/
    629616
    630 ODINFUNCTION4(BOOL, CreateScalableFontResourceA,
    631               DWORD, fdwHidden,
    632               LPCSTR, lpszFontRes,
    633               LPCSTR, lpszFontFile,
    634               LPCSTR, lpszCurrentPath)
     617BOOL WIN32API CreateScalableFontResourceA(DWORD fdwHidden,
     618                                          LPCSTR lpszFontRes,
     619                                          LPCSTR lpszFontFile,
     620                                          LPCSTR lpszCurrentPath)
    635621{
    636622  dprintf(("GDI32: CreateScalableFontResourceA not implemented.\n"));
     
    656642 *****************************************************************************/
    657643
    658 ODINFUNCTION4(BOOL, CreateScalableFontResourceW,
    659               DWORD, fdwHidden,
    660               LPCWSTR, lpszFontRes,
    661               LPCWSTR, lpszFontFile,
    662               LPCWSTR, lpszCurrentPath)
     644BOOL WIN32API CreateScalableFontResourceW(DWORD fdwHidden,
     645                                          LPCWSTR lpszFontRes,
     646                                          LPCWSTR lpszFontFile,
     647                                          LPCWSTR lpszCurrentPath)
    663648{
    664649  dprintf(("GDI32: CreateScalableFontResourceW not implemented.\n"));
     
    683668 *****************************************************************************/
    684669
    685 ODINFUNCTION1(DWORD, GetFontLanguageInfo,
    686               HDC, hdc)
     670DWORD WIN32API GetFontLanguageInfo(HDC hdc)
    687671{
    688672  dprintf(("GDI32: GetFontLanguageInfo(%08xh) not implemented.\n",
     
    714698 * DWORD flags  determines interpretation of lpSrc
    715699 */
    716 ODINFUNCTION3(BOOL, TranslateCharsetInfo,
    717               LPDWORD, lpSrc,
    718               LPCHARSETINFO, lpCs,
    719               DWORD, flags)
     700BOOL WIN32API TranslateCharsetInfo(LPDWORD lpSrc, LPCHARSETINFO lpCs,
     701                                   DWORD flags)
    720702{
    721703    int index = 0;
  • trunk/src/gdi32/gdi32.cpp

    r9385 r9429  
    1 /* $Id: gdi32.cpp,v 1.84 2002-11-04 13:30:36 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.85 2002-11-26 10:53:08 sandervl Exp $ */
    22
    33/*
     
    3939COLORREF WIN32API SetBkColor(HDC hdc, COLORREF crColor)
    4040{
    41   dprintf(("GDI32: SetBkColor %x to %x", hdc, crColor));
    4241  return(O32_SetBkColor(hdc, crColor));
    4342}
     
    4645COLORREF WIN32API SetTextColor(HDC hdc, COLORREF crColor)
    4746{
    48  COLORREF clr;
    49 
    50   dprintf(("GDI32: SetTextColor %x to %x", hdc, crColor));
    51   clr = O32_SetTextColor(hdc, crColor);
    52   return(clr);
     47  return O32_SetTextColor(hdc, crColor);
    5348}
    5449//******************************************************************************
     
    7772                break;
    7873    }
    79     dprintf(("GDI32: GetStockObject %d returned %X\n", arg1, obj));
    8074    return(obj);
    8175}
    8276//******************************************************************************
    8377//******************************************************************************
    84 ODINFUNCTION3(HPEN, CreatePen, int, fnPenStyle, int, nWidth, COLORREF, crColor)
     78HPEN WIN32API CreatePen(int fnPenStyle, int nWidth, COLORREF crColor)
    8579{
    8680 HPEN hPen;
     
    10094 HPEN hPen;
    10195
    102     dprintf(("GDI32: CreatePenIndirect %x", lplgpn));
    10396    hPen = O32_CreatePenIndirect(lplgpn);
    10497    if(hPen) STATS_CreatePenIndirect(hPen, lplgpn);
     
    113106
    114107    hPen = O32_ExtCreatePen(dwPenStyle, dwWidth, lplb, dwStyleCount, lpStyle);
    115     dprintf(("GDI32: ExtCreatePen %x %x %x %x %x returned %x", dwPenStyle, dwWidth, lplb, dwStyleCount, lpStyle, hPen));
    116108    if(hPen) STATS_ExtCreatePen(hPen, dwPenStyle, dwWidth, lplb, dwStyleCount, lpStyle);
    117109    return hPen;
     
    125117    hBrush = O32_CreatePatternBrush(hBitmap);
    126118    if(hBrush) STATS_CreatePatternBrush(hBrush, hBitmap);
    127 
    128     dprintf(("GDI32: CreatePatternBrush from bitmap %X returned %X\n", hBitmap, hBrush));
    129119    return(hBrush);
    130120}
    131121//******************************************************************************
    132122//******************************************************************************
    133 ODINFUNCTION1(HBRUSH, CreateSolidBrush, COLORREF, color)
     123HBRUSH WIN32API CreateSolidBrush(COLORREF color)
    134124{
    135125    HBRUSH hBrush;
     
    143133HBRUSH WIN32API CreateBrushIndirect( const LOGBRUSH *pLogBrush)
    144134{
    145  HBRUSH hBrush;
     135    HBRUSH hBrush;
    146136
    147137    hBrush = O32_CreateBrushIndirect((LPLOGBRUSH)pLogBrush);
     
    156146 HBRUSH hBrush;
    157147 
    158     dprintf(("GDI32: CreateHatchBrush %x %x", fnStyle, clrref));
    159148    hBrush = O32_CreateHatchBrush(fnStyle, clrref);
    160149    if(hBrush) STATS_CreateHatchBrush(hBrush, fnStyle, clrref);
     
    167156 HBRUSH hBrush;
    168157
    169     dprintf(("GDI32: CreateDIBPatternBrushPt %x %x", buffer, usage));
    170158    hBrush = O32_CreateDIBPatternBrushPt(buffer, usage);
    171159    if(hBrush) STATS_CreateDIBPatternBrushPt(hBrush, buffer, usage);
     
    234222    //PF Open32 seems not to move coordinates to 0,0 in newHdc
    235223    MoveToEx(newHdc, 0, 0 , NULL);
    236     dprintf(("CreateCompatibleDC %X returned %x", hdc, newHdc));
     224
    237225    return newHdc;
    238226}
    239227//******************************************************************************
    240228//******************************************************************************
    241 ODINFUNCTION1(BOOL, DeleteDC, HDC, hdc)
     229BOOL WIN32API DeleteDC(HDC hdc)
    242230{
    243231  pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    270258BOOL WIN32API StrokeAndFillPath(HDC hdc)
    271259{
    272     dprintf(("GDI32: StrokeAndFillPath %x", hdc));
    273260    return O32_StrokeAndFillPath(hdc);
    274261}
     
    277264BOOL WIN32API StrokePath(HDC hdc)
    278265{
    279     dprintf(("GDI32: StrokePath %x", hdc));
    280266    return O32_StrokePath(hdc);
    281267}
     
    284270int WIN32API SetBkMode( HDC hdc, int mode)
    285271{
    286     dprintf(("GDI32: SetBkMode %x %d (old %d)", hdc, mode, O32_GetBkMode(hdc)));
    287272    return O32_SetBkMode(hdc, mode);
    288273}
     
    291276COLORREF WIN32API GetPixel( HDC hdc, int x, int y)
    292277{
    293  COLORREF color;
    294 
    295     color = O32_GetPixel(hdc, x, y);
    296     dprintf2(("GDI32: GetPixel %x (%d,%d) -> %x", hdc, x, y, color));
    297     return color;
     278    return O32_GetPixel(hdc, x, y);
    298279}
    299280//******************************************************************************
     
    301282COLORREF WIN32API SetPixel( HDC hdc, int x, int y, COLORREF color)
    302283{
    303     dprintf2(("GDI32: SetPixel %x (%d,%d) %x", hdc, x, y, color));
    304284    return O32_SetPixel(hdc, x, y, color);
    305285}
     
    312292 COLORREF rc;
    313293
    314 ////    dprintf(("GDI32: SetPixelV\n"));
    315294    rc = O32_SetPixel(arg1, arg2, arg3, arg4);
    316295    if(rc == GDI_ERROR) // || rc == COLOR_INVALID)
     
    326305        return FALSE;
    327306    }
    328     dprintf(("GDI32: GetDCOrgEx %x (%d,%d)", hdc, lpPoint));
    329307    return O32_GetDCOrgEx(hdc, lpPoint);
    330308}
     
    333311BOOL WIN32API AbortPath(HDC hdc)
    334312{
    335     dprintf(("GDI32: AbortPath %x", hdc));
    336313    return O32_AbortPath(hdc);
    337314}
     
    340317BOOL WIN32API AngleArc( HDC arg1, int arg2, int arg3, DWORD arg4, float  arg5, float  arg6)
    341318{
    342     dprintf(("GDI32: AngleArc"));
    343319    return O32_AngleArc(arg1, arg2, arg3, arg4, arg5, arg6);
    344320}
     
    347323BOOL WIN32API Arc( HDC arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int  arg9)
    348324{
    349     dprintf(("GDI32: Arc"));
    350325    return O32_Arc(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
    351326}
     
    354329BOOL WIN32API ArcTo( HDC arg1, int arg2, int arg3, int arg4, int arg5, int  arg6, int  arg7, int  arg8, int  arg9)
    355330{
    356     dprintf(("GDI32: ArcTo"));
    357331    return O32_ArcTo(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
    358332}
     
    361335BOOL WIN32API BeginPath(HDC hdc)
    362336{
    363     dprintf(("GDI32: BeginPath $x", hdc));
    364337    return O32_BeginPath(hdc);
    365338}
     
    368341BOOL WIN32API Chord( HDC arg1, int arg2, int arg3, int arg4, int arg5, int  arg6, int  arg7, int  arg8, int  arg9)
    369342{
    370     dprintf(("GDI32: Chord"));
    371343    return O32_Chord(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
    372344}
     
    375347BOOL WIN32API CloseFigure(HDC hdc)
    376348{
    377     dprintf(("GDI32: CloseFigure %x", hdc));
    378349    return O32_CloseFigure(hdc);
    379350}
     
    423394    HDC   rc;
    424395    DEVMODEA devmode;
    425 
    426     dprintf(("GDI32: CreateDCW"));
    427396
    428397    if(arg4)
     
    486455 HDC          hdc;
    487456
    488     dprintf(("GDI32: CreateICA"));
    489457    //SvL: Open32 tests for "DISPLAY"
    490458    if(lpszDriver && !strcmp(lpszDriver, "display")) {
     
    516484    HDC   rc;
    517485    DEVMODEA devmode;
    518 
    519     dprintf(("GDI32: CreateICW"));
    520486
    521487    if(arg4)
     
    583549BOOL WIN32API EndPath( HDC hdc)
    584550{
    585     dprintf(("GDI32: EndPath %x", hdc));
    586551    return O32_EndPath(hdc);
    587552}
    588553//******************************************************************************
    589554//******************************************************************************
    590 ODINFUNCTION5(BOOL, Rectangle, HDC, hdc, int, left, int, top, int, right, int, bottom)
     555BOOL WIN32API Rectangle(HDC hdc, int left, int top, int right, int bottom)
    591556{
    592557    return O32_Rectangle(hdc, left, top, right, bottom);
     
    594559//******************************************************************************
    595560//******************************************************************************
     561#ifdef DEBUG
    596562VOID dumpROP2(INT rop2)
    597563{
     
    660626      break;
    661627
     628    case R2_NOTXORPEN:
     629      name = "R2_NOTXORPEN";
     630      break;
     631
    662632    default:
    663633      name = "unknown mode!!!";
     
    667637  dprintf(("  ROP2 mode = %s",name));
    668638}
     639#endif
    669640//******************************************************************************
    670641//******************************************************************************
    671642int WIN32API SetROP2( HDC hdc, int rop2)
    672643{
    673     dprintf(("GDI32: SetROP2 %x %x", hdc, rop2));
    674644    #ifdef DEBUG
    675645    dumpROP2(rop2);
     
    695665BOOL WIN32API ExtFloodFill( HDC arg1, int arg2, int arg3, COLORREF arg4, UINT  arg5)
    696666{
    697     dprintf(("GDI32: ExtFloodFill"));
    698667    return O32_ExtFloodFill(arg1, arg2, arg3, arg4, arg5);
    699668}
     
    702671BOOL WIN32API FillPath( HDC arg1)
    703672{
    704     dprintf(("GDI32: FillPath"));
    705673    return O32_FillPath(arg1);
    706674}
     
    709677BOOL WIN32API FlattenPath( HDC arg1)
    710678{
    711     dprintf(("GDI32: FlattenPath"));
    712679    return O32_FlattenPath(arg1);
    713680}
     
    716683BOOL WIN32API FloodFill(HDC arg1, int arg2, int arg3, COLORREF  arg4)
    717684{
    718     dprintf(("GDI32: FloodFill"));
    719685    return O32_FloodFill(arg1, arg2, arg3, arg4);
    720686}
     
    723689int WIN32API GetArcDirection( HDC arg1)
    724690{
    725     dprintf(("GDI32: GetArcDirection"));
    726691    return O32_GetArcDirection(arg1);
    727692}
     
    730695BOOL WIN32API GetAspectRatioFilterEx( HDC arg1, PSIZE  arg2)
    731696{
    732     dprintf(("GDI32: GetAspectRatioFilterEx"));
    733697    return O32_GetAspectRatioFilterEx(arg1, arg2);
    734698}
     
    737701COLORREF WIN32API GetBkColor(HDC hdc)
    738702{
    739  COLORREF color;
    740 
    741     color = O32_GetBkColor(hdc);
    742     dprintf(("GDI32: GetBkColor %x returned %x", hdc, color));
    743     return color;
     703    return O32_GetBkColor(hdc);
    744704}
    745705//******************************************************************************
     
    747707int WIN32API GetBkMode(HDC hdc)
    748708{
    749  int bkmode;
    750 
    751     bkmode = O32_GetBkMode(hdc);
    752     dprintf(("GDI32: GetBkMode %x returned %d", hdc, bkmode));
    753     return bkmode;
     709    return O32_GetBkMode(hdc);
    754710}
    755711//******************************************************************************
     
    757713UINT WIN32API GetBoundsRect( HDC arg1, PRECT arg2, UINT  arg3)
    758714{
    759     dprintf(("GDI32: GetBoundsRect"));
    760715    return O32_GetBoundsRect(arg1, arg2, arg3);
    761716}
     
    764719BOOL WIN32API GetBrushOrgEx( HDC arg1, PPOINT  arg2)
    765720{
    766     dprintf(("GDI32: GetBrushOrgEx"));
    767721    return O32_GetBrushOrgEx(arg1, arg2);
    768722}
     
    771725BOOL WIN32API GetCharABCWidthsA( HDC arg1, UINT arg2, UINT arg3, LPABC arg4)
    772726{
    773     dprintf(("GDI32: GetCharABCWidthsA"));
    774727    return O32_GetCharABCWidths(arg1, arg2, arg3, arg4);
    775728}
     
    817770 BOOL rc;
    818771
    819     dprintf(("GDI32: GetCurrentPositionEx %x", hdc));
    820772    rc = O32_GetCurrentPositionEx(hdc, lpPoint);
    821773    dprintf(("GDI32: GetCurrentPositionEx returned %d (%d,%d)", rc, lpPoint->x, lpPoint->y));
     
    840792DWORD WIN32API GetKerningPairsA( HDC arg1, DWORD arg2, LPKERNINGPAIR  arg3)
    841793{
    842     dprintf(("GDI32: GetKerningPairsA"));
    843794    return O32_GetKerningPairs(arg1, arg2, arg3);
    844795}
     
    847798DWORD WIN32API GetKerningPairsW( HDC arg1, DWORD arg2, LPKERNINGPAIR  arg3)
    848799{
    849     dprintf(("GDI32: GetKerningPairsW"));
     800    dprintf(("GDI32: GetKerningPairsW; might not work"));
    850801    // NOTE: This will not work as is (needs UNICODE support)
    851802    return O32_GetKerningPairs(arg1, arg2, arg3);
     
    855806BOOL WIN32API GetMiterLimit( HDC arg1, float * arg2)
    856807{
    857     dprintf(("GDI32: GetMiterLimit"));
    858808    return O32_GetMiterLimit(arg1, arg2);
    859809}
     
    862812COLORREF WIN32API GetNearestColor( HDC arg1, COLORREF  arg2)
    863813{
    864     dprintf(("GDI32: GetNearestColor\n"));
    865814    return O32_GetNearestColor(arg1, arg2);
    866815}
     
    869818INT WIN32API GetPath( HDC hdc, PPOINT arg2, PBYTE arg3, int  arg4)
    870819{
    871     dprintf(("GDI32: GetPath %x", hdc));
    872820    return O32_GetPath(hdc, arg2, arg3, arg4);
    873821}
     
    876824int WIN32API GetPolyFillMode( HDC hdc)
    877825{
    878     dprintf(("GDI32: GetPolyFillMode", hdc));
    879826    return O32_GetPolyFillMode(hdc);
    880827}
     
    883830int WIN32API GetROP2( HDC hdc)
    884831{
    885     dprintf(("GDI32: GetROP2 %x", hdc));
    886832    return O32_GetROP2(hdc);
    887833}
     
    890836BOOL WIN32API GetRasterizerCaps(LPRASTERIZER_STATUS arg1, UINT  arg2)
    891837{
    892     dprintf(("GDI32: GetRasterizerCaps"));
    893838    return O32_GetRasterizerCaps(arg1, arg2);
    894839}
     
    897842UINT WIN32API GetTextAlign( HDC hdc)
    898843{
    899     dprintf(("GDI32: GetTextAlign %x", hdc));
    900844    return O32_GetTextAlign(hdc);
    901845}
     
    904848int WIN32API GetTextCharacterExtra( HDC hdc)
    905849{
    906     dprintf(("GDI32: GetTextCharacterExtra", hdc));
    907850    return O32_GetTextCharacterExtra(hdc);
    908851}
     
    911854COLORREF WIN32API GetTextColor( HDC hdc)
    912855{
    913     COLORREF color;
    914 
    915     color = O32_GetTextColor(hdc);
    916     dprintf(("GDI32: GetTextColor %x -> %x", hdc, color));
    917     return color;
     856    return O32_GetTextColor(hdc);
    918857}
    919858//******************************************************************************
     
    936875BOOL WIN32API PolyBezier( HDC arg1, const POINT * arg2, DWORD  arg3)
    937876{
    938     dprintf(("GDI32: PolyBezier"));
    939877    return O32_PolyBezier(arg1, arg2, (int)arg3);
    940878}
     
    943881BOOL WIN32API PolyBezierTo( HDC arg1, const POINT * arg2, DWORD  arg3)
    944882{
    945     dprintf(("GDI32: PolyBezierTo"));
    946883    return O32_PolyBezierTo(arg1, arg2, arg3);
    947884}
     
    950887BOOL WIN32API PolyDraw( HDC arg1, const POINT * arg2, const BYTE * arg3, DWORD  arg4)
    951888{
    952     dprintf(("GDI32: PolyDraw"));
    953889    return O32_PolyDraw(arg1, arg2, arg3, arg4);
    954890}
     
    957893BOOL WIN32API PolyPolygon( HDC arg1, const POINT * arg2, const INT * arg3, UINT  arg4)
    958894{
    959     dprintf(("GDI32: PolyPolygon"));
    960895    return O32_PolyPolygon(arg1, arg2, arg3, arg4);
    961896}
     
    964899BOOL WIN32API PolyPolyline( HDC hdc, const POINT * lppt, const DWORD * lpdwPolyPoints, DWORD cCount)
    965900{
    966     dprintf(("GDI32: PolyPolyline %x %x %x %d", hdc, lppt, lpdwPolyPoints, cCount));
    967 
    968901    return O32_PolyPolyline(hdc,lppt,lpdwPolyPoints,cCount);
    969902}
     
    972905BOOL WIN32API Polygon( HDC hdc, const POINT *lpPoints, int count)
    973906{
    974     dprintf(("GDI32: Polygon %x %x %d", hdc, lpPoints, count));
    975907    return O32_Polygon(hdc, lpPoints, count);
    976908}
     
    997929HDC WIN32API ResetDCA( HDC arg1, const DEVMODEA *  arg2)
    998930{
    999     dprintf(("GDI32: ResetDCA\n"));
    1000931    return (HDC)O32_ResetDC(arg1, arg2);
    1001932}
     
    1004935HDC WIN32API ResetDCW( HDC arg1, const DEVMODEW *  arg2)
    1005936{
    1006     dprintf(("GDI32: ResetDCW\n"));
     937    dprintf(("GDI32: ResetDCW: not properly implemented"));
     938    DebugInt3();
    1007939    // NOTE: This will not work as is (needs UNICODE support)
    1008940    return (HDC)O32_ResetDC(arg1, (const DEVMODEA *)arg2);
     
    1013945{
    1014946 BOOL ret;
    1015 
    1016     dprintf(("GDI32: RestoreDC %x %d", hdc, id));
    1017947
    1018948    ret = O32_RestoreDC(hdc, id);
     
    1026956BOOL WIN32API RoundRect( HDC arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int  arg7)
    1027957{
    1028     dprintf(("GDI32: RoundRect"));
    1029958    return O32_RoundRect(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
    1030959}
     
    1035964 int id;
    1036965
    1037     dprintf(("GDI32: SaveDC %x", hdc));
    1038966    id = O32_SaveDC(hdc);
    1039967    if(id == 0) {
     
    1047975int WIN32API SetArcDirection( HDC arg1, int  arg2)
    1048976{
    1049     dprintf(("GDI32: SetArcDirection"));
    1050977    return O32_SetArcDirection(arg1, arg2);
    1051978}
     
    1054981UINT WIN32API SetBoundsRect( HDC arg1, const RECT * arg2, UINT arg3)
    1055982{
    1056     dprintf(("GDI32: SetBoundsRect"));
    1057983    return O32_SetBoundsRect(arg1, arg2, arg3);
    1058984}
     
    1061987BOOL WIN32API SetBrushOrgEx( HDC arg1, int arg2, int arg3, PPOINT  arg4)
    1062988{
    1063  BOOL rc;
    1064 
    1065     rc = O32_SetBrushOrgEx(arg1, arg2, arg3, arg4);
    1066     dprintf(("GDI32: SetBrushOrgEx returned %d\n", rc));
    1067     return(rc);
    1068 }
    1069 //******************************************************************************
    1070 //******************************************************************************
    1071 ODINFUNCTION2(DWORD, SetMapperFlags, HDC, hdc, DWORD, dwFlag)
     989    return O32_SetBrushOrgEx(arg1, arg2, arg3, arg4);
     990}
     991//******************************************************************************
     992//******************************************************************************
     993DWORD WIN32API SetMapperFlags(HDC hdc, DWORD dwFlag)
    1072994{
    1073995    return O32_SetMapperFlags(hdc, dwFlag);
     
    1075997//******************************************************************************
    1076998//******************************************************************************
    1077 ODINFUNCTION3(BOOL, SetMiterLimit, HDC, hdc, float, eNewLimit, float* ,peOldLimit)
     999BOOL WIN32API SetMiterLimit(HDC hdc, float eNewLimit, float* peOldLimit)
    10781000{
    10791001    return O32_SetMiterLimit(hdc, eNewLimit, peOldLimit);
     
    10811003//******************************************************************************
    10821004//******************************************************************************
    1083 ODINFUNCTION2(int, SetPolyFillMode, HDC, hdc, int, iPolyFillMode)
     1005int WIN32API SetPolyFillMode(HDC hdc, int iPolyFillMode)
    10841006{
    10851007    return O32_SetPolyFillMode(hdc, iPolyFillMode);
     
    10871009//******************************************************************************
    10881010//******************************************************************************
    1089 ODINFUNCTION2(UINT, SetTextAlign, HDC, hdc, UINT, fMode)
     1011UINT WIN32API SetTextAlign(HDC hdc, UINT fMode)
    10901012{
    10911013    return O32_SetTextAlign(hdc, fMode);
     
    10931015//******************************************************************************
    10941016//******************************************************************************
    1095 ODINFUNCTION2(int, SetTextCharacterExtra, HDC, hdc, int, nCharExtra)
     1017int WIN32API SetTextCharacterExtra(HDC hdc, int nCharExtra)
    10961018{
    10971019    return O32_SetTextCharacterExtra(hdc, nCharExtra);
     
    10991021//******************************************************************************
    11001022//******************************************************************************
    1101 ODINFUNCTION3(BOOL, SetTextJustification, HDC, hdc, int, nBreakExtra, int, nBreakCount)
     1023BOOL WIN32API SetTextJustification(HDC hdc, int nBreakExtra, int nBreakCount)
    11021024{
    11031025    return O32_SetTextJustification(hdc, nBreakExtra, nBreakCount);
     
    11071029BOOL WIN32API WidenPath( HDC hdc)
    11081030{
    1109     dprintf(("GDI32: WidenPath %x", hdc));
    11101031    return O32_WidenPath(hdc);
    11111032}
     
    11361057BOOL WIN32API UpdateColors(HDC hdc)
    11371058{
    1138   dprintf(("GDI32: UpdateColors\n"));
    11391059  return InvalidateRect(WindowFromDC(hdc), NULL, FALSE);
    11401060}
     
    13211241  return (FALSE);
    13221242}
    1323 
    13241243
    13251244/*****************************************************************************
  • trunk/src/gdi32/gdistats.cpp

    r9251 r9429  
    4040{
    4141    for(int i=0;i<STATS_MAX_OBJECTS;i++) {
    42         if(pdwObjects[i] == hObject) {
     42        if(LOWORD(pdwObjects[i]) == LOWORD(hObject)) {
    4343            pdwObjects[i] = 0;
    4444            break;
  • trunk/src/gdi32/icm.cpp

    r6684 r9429  
    1 /* $Id: icm.cpp,v 1.2 2001-09-09 12:24:13 sandervl Exp $ */
     1/* $Id: icm.cpp,v 1.3 2002-11-26 10:53:09 sandervl Exp $ */
    22
    33/*
     
    2424#include <winuser32.h>
    2525
    26 #define DBG_LOCALLOG    DBG_gdi32
     26#define DBG_LOCALLOG    DBG_icm
    2727#include "dbglocal.h"
    2828
  • trunk/src/gdi32/line.cpp

    r7366 r9429  
    1 /* $Id: line.cpp,v 1.12 2001-11-16 16:27:54 sandervl Exp $ */
     1/* $Id: line.cpp,v 1.13 2002-11-26 10:53:10 sandervl Exp $ */
    22/*
    33 * Line API's
     
    170170  POINTLOS2 startPt,endPt;
    171171
    172   dprintf(("GDI32: LineDDA\n"));
    173172#if 0 //CB: the Open32 function is ok -> to check
    174173  startPt.x = nXStart;
     
    190189  pDCData pHps = (pDCData)OSLibGpiQueryDCData(hdc);
    191190
    192   dprintf(("GDI32: Polyline %x %x %d", hdc, lppt, cPoints));
    193 
    194191  if (!pHps)
    195192  {
     
    226223{
    227224  pDCData pHps = (pDCData)OSLibGpiQueryDCData(hdc);
    228 
    229   dprintf(("GDI32: PolylineTo"));
    230225
    231226  if (!pHps)
  • trunk/src/gdi32/makefile

    r7635 r9429  
    1 # $Id: makefile,v 1.41 2001-12-15 18:50:27 sandervl Exp $
     1# $Id: makefile,v 1.42 2002-11-26 10:53:10 sandervl Exp $
    22
    33#
     
    77#
    88
     9
     10!if "$(DEBUG)" == "1"
     11DEFFILE    = gdi32dbg.def
     12ORGDEFFILE = gdi32.def
     13!endif
    914
    1015#
     
    5358$(OBJDIR)\gdistats.obj \
    5459$(OBJDIR)\dbglocal.obj \
     60!ifdef DEBUG
     61$(OBJDIR)\dbgwrap.obj \
     62!endif
    5563$(OBJDIR)\gdi32rsrc.obj
    5664
  • trunk/src/gdi32/objhandle.cpp

    r9415 r9429  
    1 /* $Id: objhandle.cpp,v 1.30 2002-11-18 15:45:31 sandervl Exp $ */
     1/* $Id: objhandle.cpp,v 1.31 2002-11-26 10:53:10 sandervl Exp $ */
    22/*
    33 * Win32 Handle Management Code for OS/2
     
    249249{
    250250    int rc;
    251 
    252     dprintf(("GDI32: GetObject %X %X %X\n", hObject, size, lpBuffer));
    253    
     251   
    254252    if(lpBuffer == NULL)
    255253    { //return required size if buffer pointer == NULL
     
    309307    int ret, objtype;
    310308
    311     dprintf(("GDI32: GetObjectW %X, %d %X", hObject, size, lpBuffer));
    312 
    313309    objtype = GetObjectType(hObject);
    314310
     
    415411        }
    416412    }
    417     dprintf2(("GDI32: SelectObject %x %x returned %x", hdc, hObj, rc));
    418 
    419413    return(rc);
    420414}
     
    494488    DWORD objflags;
    495489
    496     dprintf(("GDI32: DeleteObject %x", hObj));
    497490//hack alert
    498491    if(HIWORD(hObj) == 0x100)
     
    536529HANDLE WIN32API GetCurrentObject( HDC hdc, UINT arg2)
    537530{
    538     dprintf(("GDI32: GetCurrentObject %x %x", hdc, arg2));
    539531    return (HANDLE)O32_GetCurrentObject(hdc, arg2);
    540532}
     
    551543BOOL WIN32API UnrealizeObject( HGDIOBJ hObject)
    552544{
    553     dprintf(("GDI32: UnrealizeObject %x", hObject));
    554545    return O32_UnrealizeObject(hObject);
    555546}
  • trunk/src/gdi32/opengl.cpp

    r2802 r9429  
    1 /* $Id: opengl.cpp,v 1.8 2000-02-16 14:18:11 sandervl Exp $ */
     1/* $Id: opengl.cpp,v 1.9 2002-11-26 10:53:11 sandervl Exp $ */
    22
    33/*
     
    119119 *****************************************************************************/
    120120
    121 ODINFUNCTION2(int,ChoosePixelFormat,HDC,                         hdc,
    122                                     CONST PIXELFORMATDESCRIPTOR*,pformat)
     121int WIN32API ChoosePixelFormat(HDC hdc, CONST PIXELFORMATDESCRIPTOR* pformat)
    123122{
    124123  if (glChoosePixelFormat == NULL)
     
    129128}
    130129
    131 ODINFUNCTION4(int,DescribePixelFormat,HDC,hdc,
    132                                       int,iFormat,
    133                                       UINT,nBytes,
    134                                       LPPIXELFORMATDESCRIPTOR,pformat)
     130int WIN32API DescribePixelFormat(HDC hdc, int iFormat, UINT nBytes,
     131                                      LPPIXELFORMATDESCRIPTOR pformat)
    135132{
    136133  if (glDescribePixelFormat == NULL)
     
    141138}
    142139
    143 ODINFUNCTION1(int,GetPixelFormat,HDC,hdc)
     140int WIN32API GetPixelFormat(HDC hdc)
    144141{
    145142  if (glGetPixelFormat == NULL)
     
    162159 *****************************************************************************/
    163160
    164 ODINFUNCTION3(BOOL,SetPixelFormat,HDC,                          hdc,
    165                                   int,                          whatever,
    166                                   CONST PIXELFORMATDESCRIPTOR*, pformat)
     161BOOL WIN32API SetPixelFormat(HDC hdc, int whatever,
     162                             CONST PIXELFORMATDESCRIPTOR *pformat)
    167163{
    168164  if (glSetPixelFormat == NULL)
     
    186182 *****************************************************************************/
    187183
    188 ODINFUNCTION1(BOOL,SwapBuffers,HDC,hdc)
     184BOOL WIN32API SwapBuffers(HDC hdc)
    189185{
    190186  if (glSwapBuffers == NULL)
  • trunk/src/gdi32/region.cpp

    r9388 r9429  
    1 /* $Id: region.cpp,v 1.29 2002-11-05 14:33:32 sandervl Exp $ */
     1/* $Id: region.cpp,v 1.30 2002-11-26 10:53:12 sandervl Exp $ */
    22
    33/*
     
    1313 *
    1414 */
    15 
    16 // Note: profiling currently not supported for this file
    17 #undef PROFILE
    18 #include <odinwrap.h>
    1915
    2016#define  INCL_GPI
     
    3834#define DBG_LOCALLOG    DBG_region
    3935#include "dbglocal.h"
    40 
    41 
    42 ODINDEBUGCHANNEL(GDI32-REGION)
    43 
    4436
    4537typedef enum
     
    377369int WIN32API GetRgnBox( HRGN hrgn, PRECT pRect);
    378370//******************************************************************************
    379 ODINFUNCTIONNODBG2(int, SelectClipRgn, HDC, hdc, HRGN, hrgn)
     371int WIN32API SelectClipRgn(HDC hdc, HRGN hrgn)
    380372{
    381373 LONG lComplexity = RGN_NULL;
     
    394386    }
    395387
    396     dprintf(("SelectClipRgn: %x %x", hdc, hrgn));
    397388    if(hrgn)
    398389    {
     
    447438//******************************************************************************
    448439//******************************************************************************
    449 ODINFUNCTIONNODBG3(int, ExtSelectClipRgn, HDC, hdc, HRGN, hrgn, int, mode)
     440int WIN32API ExtSelectClipRgn(HDC hdc, HRGN hrgn, int mode)
    450441{
    451442#ifdef DEBUG
    452  HRGN hrgn1 = hrgn;
     443   HRGN hrgn1 = hrgn;
    453444#endif
    454445
     
    497488   }
    498489
    499    dprintf(("ExtSelectRgn %x %x %d", hdc, hrgn1, mode));
    500490   //TODO: metafile recording
    501491   if(hrgn)
     
    559549//******************************************************************************
    560550//******************************************************************************
    561 ODINFUNCTIONNODBG2(int, GetClipBox, HDC, hdc, PRECT, lpRect)
     551int WIN32API GetClipBox(HDC hdc, PRECT lpRect)
    562552{
    563553 pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    628618//******************************************************************************
    629619//******************************************************************************
    630 ODINFUNCTIONNODBG2(int, GetClipRgn, HDC, hdc, HRGN, hrgn)
     620int WIN32API GetClipRgn(HDC hdc, HRGN hrgn)
    631621{
    632622   pDCData    pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    635625   HRGN       hrgnClip = NULL, hrgnTemp;
    636626#ifdef DEBUG
    637    HRGN       hrgn1 = hrgn;
     627   HRGN hrgn1 = hrgn;
    638628#endif
    639629
     
    666656    else lComplexity = RGN_NULL;
    667657
    668     dprintf(("GetClipRgn %x %x returned %d", hdc, hrgn1, lComplexity != RGN_NULL));
    669658    SetLastError(ERROR_SUCCESS_W);
    670659    if(lComplexity == RGN_NULL)
     
    674663//******************************************************************************
    675664//******************************************************************************
    676 ODINFUNCTIONNODBG5(int, ExcludeClipRect, HDC, hdc, int, left, int, top, int, right, int, bottom)
     665int WIN32API ExcludeClipRect(HDC  hdc, int  left, int  top, int  right, int bottom)
    677666{
    678667    pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    716705//******************************************************************************
    717706//******************************************************************************
    718 ODINFUNCTIONNODBG5(int, IntersectClipRect, HDC, hdc, int, left, int, top, int, right, int, bottom)
     707int WIN32API IntersectClipRect(HDC hdc, int left, int top, int right, int bottom)
    719708{
    720709    pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    755744//******************************************************************************
    756745//******************************************************************************
    757 ODINFUNCTIONNODBG3(int, OffsetClipRgn, HDC, hdc, int, nXOffset, int, nYOffset )
    758 {
    759    BOOL      success;
    760    pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
    761    LONG      lComplexity;
     746int WIN32API OffsetClipRgn(HDC  hdc, int  nXOffset, int nYOffset )
     747{
     748   BOOL    success;
     749   pDCData pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     750   LONG    lComplexity;
    762751
    763752   if(!pHps) {
     
    784773//******************************************************************************
    785774//******************************************************************************
    786 ODINFUNCTIONNODBG4(HRGN, CreatePolyPolygonRgn, const POINT * , lppt, const int *, pPolyCount, int,  nCount, int, fnPolyFillMode)
     775HRGN WIN32API CreatePolyPolygonRgn(const POINT *lppt, const int *pPolyCount,
     776                                   int  nCount, int fnPolyFillMode)
    787777{
    788778 LONG  flMode;
     
    845835//******************************************************************************
    846836//******************************************************************************
    847 ODINFUNCTIONNODBG4(HRGN, CreateRectRgn, int, left, int, top, int, right, int, bottom)
     837HRGN WIN32API CreateRectRgn(int  left, int  top, int  right, int bottom)
    848838{
    849839 HRGN   hrgn;
     
    870860//******************************************************************************
    871861//******************************************************************************
    872 ODINFUNCTIONNODBG1(HRGN, CreateRectRgnIndirect, const RECT *, lprc)
     862HRGN WIN32API CreateRectRgnIndirect( const RECT * lprc)
    873863{
    874864   return CreateRectRgn(lprc->left, lprc->top, lprc->right, lprc->bottom);
     
    876866//******************************************************************************
    877867//******************************************************************************
    878 ODINFUNCTIONNODBG6(HRGN, CreateRoundRectRgn, int, left, int, top, int, right, int, bottom, int, nWidthEllipse, int, nHeightEllipse)
     868HRGN WIN32API CreateRoundRectRgn(int  left, int  top, int  right, int  bottom, int  nWidthEllipse, int nHeightEllipse)
    879869{
    880870 HRGN   hrgn;
     
    905895//******************************************************************************
    906896//******************************************************************************
    907 ODINFUNCTIONNODBG3(HRGN, ExtCreateRegion, const XFORM_W *, pXform, DWORD, count, const RGNDATA *, pData)
     897HRGN WIN32API ExtCreateRegion(const XFORM_W * pXform, DWORD count,
     898                              const RGNDATA * pData)
    908899{
    909900   HRGN hrgn;
     
    10161007//******************************************************************************
    10171008//******************************************************************************
    1018 ODINFUNCTIONNODBG4(HRGN, CreateEllipticRgn, int, left, int, top, int, right, int, bottom)
     1009HRGN WIN32API CreateEllipticRgn(int  left, int  top, int  right, int bottom)
    10191010{
    10201011 HRGN hrgn;
     
    10391030//******************************************************************************
    10401031//******************************************************************************
    1041 ODINFUNCTIONNODBG1(HRGN, CreateEllipticRgnIndirect, const RECT *, pRect)
     1032HRGN WIN32API CreateEllipticRgnIndirect(const RECT *pRect)
    10421033{
    10431034   return CreateEllipticRgn(pRect->left, pRect->top, pRect->right, pRect->bottom);
     
    10451036//******************************************************************************
    10461037//******************************************************************************
    1047 ODINFUNCTIONNODBG3(HRGN, CreatePolygonRgn, const POINT *, lppt, int, cPoints, int, fnPolyFillMode)
     1038HRGN WIN32API CreatePolygonRgn(const POINT * lppt, int  cPoints, int fnPolyFillMode)
    10481039{
    10491040    HRGN hrgn;
     
    10891080//******************************************************************************
    10901081//******************************************************************************
    1091 ODINFUNCTIONNODBG4(int, CombineRgn, HRGN, hrgnDest, HRGN, hrgnSrc1, HRGN, hrgnSrc2, int, combineMode)
     1082int WIN32API CombineRgn(HRGN hrgnDest, HRGN hrgnSrc1, HRGN hrgnSrc2, int combineMode)
    10921083{
    10931084    ULONG lComplexity;
     
    11361127        return ERROR_W;
    11371128    }
    1138     dprintf(("CombineRgn %x %x %x %d", hrgn1, hrgn2, hrgn3, mode));
    11391129    SetLastError(ERROR_SUCCESS_W);
    11401130    return lComplexity;
     
    11421132//******************************************************************************
    11431133//******************************************************************************
    1144 ODINFUNCTIONNODBG2(BOOL, EqualRgn, HRGN, hrgn1, HRGN, hrgn2)
     1134BOOL WIN32API EqualRgn(HRGN  hrgn1, HRGN hrgn2)
    11451135{
    11461136   LONG lEquality;
     
    11731163//******************************************************************************
    11741164//******************************************************************************
    1175 ODINFUNCTIONNODBG5(BOOL, SetRectRgn, HRGN, hrgn, int, left, int, top, int, right, int, bottom)
     1165BOOL WIN32API SetRectRgn(HRGN  hrgn, int  left, int  top, int  right, int bottom)
    11761166{
    11771167   BOOL    result = FALSE;
     
    11971187//NOTE: depends on hps inversion
    11981188//******************************************************************************
    1199 ODINFUNCTIONNODBG3(ULONG, GetRegionData, HRGN, hrgn, ULONG, count, PRGNDATA, pData)
     1189ULONG WIN32API GetRegionData( HRGN  hrgn, ULONG count, PRGNDATA pData)
    12001190{
    12011191#ifdef DEBUG
     
    12621252//******************************************************************************
    12631253//******************************************************************************
    1264 ODINFUNCTIONNODBG2(int, GetRgnBox, HRGN, hrgn, PRECT, pRect)
     1254int WIN32API GetRgnBox( HRGN  hrgn, PRECT pRect)
    12651255{
    12661256   BOOL      success;
     
    12991289//******************************************************************************
    13001290//******************************************************************************
    1301 ODINFUNCTIONNODBG2(BOOL, InvertRgn, HDC, hdc, HRGN, hrgn)
     1291BOOL WIN32API InvertRgn( HDC  hdc, HRGN hrgn)
    13021292{
    13031293#ifdef DEBUG
     
    13231313    RECTL boundingRect;      // this gets a rectangle in world cordinates!
    13241314
    1325     lComplexity = GpiQueryRegionBox(pHps->hps, pHps->hrgnHDC, &boundingRect);
     1315    lComplexity = GpiQueryRegionBox(pHps->hps, pHps->hrgnHDC,  &boundingRect);
    13261316    if(lComplexity != RGN_ERROR)
    13271317    {
    1328         lComplexity = GpiSetClipRegion(pHps->hps, pHps->hrgnHDC, &hrgnOld);
     1318        lComplexity = GpiSetClipRegion(pHps->hps, pHps->hrgnHDC,  &hrgnOld);
    13291319        if(lComplexity != RGN_ERROR)
    13301320        {
     
    13501340//******************************************************************************
    13511341//******************************************************************************
    1352 ODINFUNCTIONNODBG3(int, OffsetRgn, HRGN, hrgn, int, xOffset, int, yOffset)
     1342int WIN32API OffsetRgn( HRGN  hrgn, int  xOffset, int yOffset)
    13531343{
    13541344   LONG   lComplexity;
     
    13981388//******************************************************************************
    13991389//******************************************************************************
    1400 ODINFUNCTIONNODBG5(BOOL, FrameRgn, HDC, hdc, HRGN, hrgn, HBRUSH, hBrush, int, width, int, height)
     1390BOOL WIN32API FrameRgn(HDC hdc, HRGN hrgn, HBRUSH hBrush, int width, int height)
    14011391{
    14021392    HBRUSH hbrushRestore = 0;
     
    14301420
    14311421    SIZEL  thickness = { width, height };
    1432     LONG   lHits = GpiFrameRegion(pHps->hps, pHps->hrgnHDC, &thickness);
     1422    LONG   lHits = GpiFrameRegion(pHps->hps, pHps->hrgnHDC,  &thickness);
    14331423
    14341424    SetLastError(ERROR_SUCCESS_W);
     
    14431433//******************************************************************************
    14441434//******************************************************************************
    1445 ODINFUNCTIONNODBG3(BOOL, FillRgn, HDC, hdc, HRGN, hrgn, HBRUSH, hBrush)
     1435BOOL WIN32API FillRgn(HDC hdc, HRGN hrgn, HBRUSH hBrush)
    14461436{
    14471437 BOOL   success;
     
    14981488//******************************************************************************
    14991489//******************************************************************************
    1500 ODINFUNCTIONNODBG2(BOOL, PaintRgn, HDC, hdc, HRGN, hrgn)
     1490BOOL WIN32API PaintRgn( HDC  hdc, HRGN hrgn)
    15011491{
    15021492   pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    15111501//******************************************************************************
    15121502//******************************************************************************
    1513 ODINFUNCTIONNODBG3(BOOL, PtInRegion, HRGN, hrgn, int, x, int, y)
     1503BOOL WIN32API PtInRegion( HRGN  hrgn, int  x, int y)
    15141504{
    15151505   BOOL      success;
     
    15441534//******************************************************************************
    15451535//******************************************************************************
    1546 ODINFUNCTIONNODBG2(BOOL, RectInRegion, HRGN, hrgn, const RECT *, pRect)
     1536BOOL WIN32API RectInRegion( HRGN  hrgn, const RECT * pRect)
    15471537{
    15481538   BOOL      success;
     
    15891579//Returned region in device coordinates (undocumented behaviour)
    15901580//******************************************************************************
    1591 ODINFUNCTIONNODBG1(HRGN, PathToRegion, HDC, hdc)
     1581HRGN WIN32API PathToRegion( HDC hdc)
    15921582{
    15931583    pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     
    16321622//Needs wrapper as this file includes os2.h!!
    16331623//******************************************************************************
    1634 ODINFUNCTIONNODBG1(BOOL, OSLibDeleteRegion, HANDLE, hRegion)
     1624BOOL WIN32API OSLibDeleteRegion(HANDLE hRegion)
    16351625{
    16361626    if(GpiDestroyRegion(hpsRegion, hRegion) == FALSE) {
     
    16531643 *****************************************************************************/
    16541644
    1655 ODINFUNCTIONNODBG2(int, GetMetaRgn, HDC,  hdc, HRGN, hrgn)
     1645int WIN32API GetMetaRgn( HDC   hdc, HRGN hrgn)
    16561646{
    16571647  dprintf(("GDI32: GetMetaRgn(%08xh, %08xh) not implemented.\n",
     
    16771667 *****************************************************************************/
    16781668
    1679 ODINFUNCTIONNODBG1(BOOL, SetMetaRgn, HDC, hdc)
     1669BOOL WIN32API SetMetaRgn( HDC hdc)
    16801670{
    16811671  dprintf(("GDI32: SetMetaRgn(%08xh) not implemented.\n",
  • trunk/src/gdi32/transform.cpp

    r6692 r9429  
    1 /* $Id: transform.cpp,v 1.7 2001-09-10 11:02:41 sandervl Exp $ */
     1/* $Id: transform.cpp,v 1.8 2002-11-26 10:53:12 sandervl Exp $ */
    22
    33/*
     
    708708//******************************************************************************
    709709//******************************************************************************
    710 
Note: See TracChangeset for help on using the changeset viewer.