Ignore:
Timestamp:
Jan 18, 2001, 7:13:18 PM (25 years ago)
Author:
sandervl
Message:

SetDIBitsToDevice fix + more logging

File:
1 edited

Legend:

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

    r4848 r4963  
    1 /* $Id: gdi32.cpp,v 1.64 2000-12-29 18:40:44 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.65 2001-01-18 18:13:17 sandervl Exp $ */
    22
    33/*
     
    193193//******************************************************************************
    194194//******************************************************************************
    195 BOOL WIN32API StrokeAndFillPath( HDC arg1)
    196 {
    197     dprintf(("GDI32: StrokeAndFillPath\n"));
    198     return O32_StrokeAndFillPath(arg1);
    199 }
    200 //******************************************************************************
    201 //******************************************************************************
    202 BOOL WIN32API StrokePath( HDC arg1)
    203 {
    204     dprintf(("GDI32: StrokePath\n"));
    205     return O32_StrokePath(arg1);
     195BOOL WIN32API StrokeAndFillPath(HDC hdc)
     196{
     197    dprintf(("GDI32: StrokeAndFillPath %x", hdc));
     198    return O32_StrokeAndFillPath(hdc);
     199}
     200//******************************************************************************
     201//******************************************************************************
     202BOOL WIN32API StrokePath(HDC hdc)
     203{
     204    dprintf(("GDI32: StrokePath %x", hdc));
     205    return O32_StrokePath(hdc);
    206206}
    207207//******************************************************************************
     
    242242//******************************************************************************
    243243//******************************************************************************
    244 BOOL WIN32API GetDCOrgEx(HDC arg1, PPOINT arg2)
    245 {
    246     dprintf(("GDI32: GetDCOrgEx\n"));
    247     return O32_GetDCOrgEx(arg1, arg2);
    248 }
    249 //******************************************************************************
    250 //******************************************************************************
    251 int WIN32API AbortDoc( HDC arg1)
    252 {
    253     dprintf(("GDI32: AbortDoc"));
    254     return O32_AbortDoc(arg1);
    255 }
    256 //******************************************************************************
    257 //******************************************************************************
    258 BOOL WIN32API AbortPath( HDC arg1)
    259 {
    260     dprintf(("GDI32: AbortPath"));
    261     return O32_AbortPath(arg1);
     244BOOL WIN32API GetDCOrgEx(HDC hdc, PPOINT lpPoint)
     245{
     246    if(lpPoint == NULL) {
     247        dprintf(("WARNING: GDI32: GetDCOrgEx %x NULL", hdc));
     248        return FALSE;
     249    }
     250    dprintf(("GDI32: GetDCOrgEx %x (%d,%d)", hdc, lpPoint));
     251    return O32_GetDCOrgEx(hdc, lpPoint);
     252}
     253//******************************************************************************
     254//******************************************************************************
     255int WIN32API AbortDoc(HDC hdc)
     256{
     257    dprintf(("GDI32: AbortDoc %x", hdc));
     258    return O32_AbortDoc(hdc);
     259}
     260//******************************************************************************
     261//******************************************************************************
     262BOOL WIN32API AbortPath(HDC hdc)
     263{
     264    dprintf(("GDI32: AbortPath %x", hdc));
     265    return O32_AbortPath(hdc);
    262266}
    263267//******************************************************************************
     
    284288//******************************************************************************
    285289//******************************************************************************
    286 BOOL WIN32API BeginPath( HDC arg1)
    287 {
    288     dprintf(("GDI32: BeginPath"));
    289     return O32_BeginPath(arg1);
     290BOOL WIN32API BeginPath(HDC hdc)
     291{
     292    dprintf(("GDI32: BeginPath $x", hdc));
     293    return O32_BeginPath(hdc);
    290294}
    291295//******************************************************************************
     
    298302//******************************************************************************
    299303//******************************************************************************
    300 BOOL WIN32API CloseFigure( HDC arg1)
    301 {
    302     dprintf(("GDI32: CloseFigure"));
    303     return O32_CloseFigure(arg1);
    304 }
    305 //******************************************************************************
    306 //******************************************************************************
    307 HBRUSH WIN32API CreateBrushIndirect( const LOGBRUSH * arg1)
    308 {
    309     dprintf(("GDI32: CreateBrushIndirect"));
    310     return O32_CreateBrushIndirect((LPLOGBRUSH)arg1);
     304BOOL WIN32API CloseFigure(HDC hdc)
     305{
     306    dprintf(("GDI32: CloseFigure %x", hdc));
     307    return O32_CloseFigure(hdc);
     308}
     309//******************************************************************************
     310//******************************************************************************
     311HBRUSH WIN32API CreateBrushIndirect( const LOGBRUSH *pLogBrush)
     312{
     313 HBRUSH hBrush;
     314
     315    hBrush = O32_CreateBrushIndirect((LPLOGBRUSH)pLogBrush);
     316    dprintf(("GDI32: CreateBrushIndirect %x %x %x returned %x", pLogBrush->lbStyle, pLogBrush->lbColor, pLogBrush->lbHatch, hBrush));
     317    return hBrush;
    311318}
    312319//******************************************************************************
     
    505512//******************************************************************************
    506513//******************************************************************************
    507 BOOL WIN32API Ellipse( HDC arg1, int arg2, int arg3, int arg4, int  arg5)
    508 {
    509     dprintf(("GDI32: Ellipse"));
    510     return O32_Ellipse(arg1, arg2, arg3, arg4, arg5);
    511 }
    512 //******************************************************************************
    513 //******************************************************************************
    514 int WIN32API EndDoc( HDC arg1)
    515 {
    516     dprintf(("GDI32: EndDoc"));
    517     return O32_EndDoc(arg1);
    518 }
    519 //******************************************************************************
    520 //******************************************************************************
    521 int WIN32API EndPage( HDC arg1)
    522 {
    523     dprintf(("GDI32: EndPage"));
    524     return O32_EndPage(arg1);
    525 }
    526 //******************************************************************************
    527 //******************************************************************************
    528 BOOL WIN32API EndPath( HDC arg1)
    529 {
    530     dprintf(("GDI32: EndPath"));
    531     return O32_EndPath(arg1);
     514BOOL WIN32API Ellipse(HDC hdc, int nLeftRect, int nTopRect, int nRightRect,
     515                      int nBottomRect)
     516{
     517    dprintf(("GDI32: Ellipse %x (%d,%d)(%d,%d)", nLeftRect, nTopRect, nRightRect, nBottomRect));
     518    return O32_Ellipse(hdc, nLeftRect, nTopRect, nRightRect, nBottomRect);
     519}
     520//******************************************************************************
     521//******************************************************************************
     522int WIN32API EndDoc( HDC hdc)
     523{
     524    dprintf(("GDI32: EndDoc %x", hdc));
     525    return O32_EndDoc(hdc);
     526}
     527//******************************************************************************
     528//******************************************************************************
     529int WIN32API EndPage( HDC hdc)
     530{
     531    dprintf(("GDI32: EndPage %x", hdc));
     532    return O32_EndPage(hdc);
     533}
     534//******************************************************************************
     535//******************************************************************************
     536BOOL WIN32API EndPath( HDC hdc)
     537{
     538    dprintf(("GDI32: EndPath %x", hdc));
     539    return O32_EndPath(hdc);
    532540}
    533541//******************************************************************************
     
    702710//******************************************************************************
    703711//******************************************************************************
    704 COLORREF WIN32API GetBkColor( HDC arg1)
    705 {
    706     dprintf(("GDI32: GetBkColor"));
    707     return O32_GetBkColor(arg1);
    708 }
    709 //******************************************************************************
    710 //******************************************************************************
    711 int WIN32API GetBkMode( HDC arg1)
    712 {
    713     dprintf(("GDI32: GetBkMode"));
    714     return O32_GetBkMode(arg1);
     712COLORREF WIN32API GetBkColor(HDC hdc)
     713{
     714 COLORREF color;
     715
     716    color = O32_GetBkColor(hdc);
     717    dprintf(("GDI32: GetBkColor %x returned %x", hdc, color));
     718    return color;
     719}
     720//******************************************************************************
     721//******************************************************************************
     722int WIN32API GetBkMode(HDC hdc)
     723{
     724 int bkmode;
     725
     726    bkmode = O32_GetBkMode(hdc);
     727    dprintf(("GDI32: GetBkMode %x returned %d", hdc, bkmode));
     728    return bkmode;
    715729}
    716730//******************************************************************************
     
    781795//******************************************************************************
    782796//******************************************************************************
    783 BOOL WIN32API GetCurrentPositionEx( HDC arg1, PPOINT  arg2)
    784 {
    785     dprintf(("GDI32: GetCurrentPositionEx"));
    786     return O32_GetCurrentPositionEx(arg1, arg2);
     797BOOL WIN32API GetCurrentPositionEx( HDC hdc, PPOINT lpPoint)
     798{
     799 BOOL rc;
     800
     801    dprintf(("GDI32: GetCurrentPositionEx %x", hdc));
     802    rc = O32_GetCurrentPositionEx(hdc, lpPoint);
     803    dprintf(("GDI32: GetCurrentPositionEx returned %d (%d,%d)", rc, lpPoint->x, lpPoint->y));
     804    return rc;
    787805}
    788806//******************************************************************************
     
    970988                  int nYRadial2)
    971989{
    972     dprintf(("GDI32: Pie"));
     990    dprintf(("GDI32: Pie %x (%d,%d)(%d,%d) (%d,%d) (%d,%d)", hdc, nLeftRect, nTopRect, nRightRect,
     991              nBottomRect, nXRadial1, nYRadial1, nXRadial2, nYRadial2));
     992
    973993    //CB: bug in O32_Pie
    974994    if (nXRadial1 == nXRadial2 && nYRadial1 == nYRadial2)
     
    10091029BOOL WIN32API PolyPolyline( HDC hdc, const POINT * lppt, const DWORD * lpdwPolyPoints, DWORD cCount)
    10101030{
    1011     dprintf(("GDI32: PolyPolyline"));
     1031    dprintf(("GDI32: PolyPolyline %x %x %x %d", hdc, lppt, lpdwPolyPoints, cCount));
    10121032
    10131033    return O32_PolyPolyline(hdc,lppt,lpdwPolyPoints,cCount);
     
    10221042//******************************************************************************
    10231043//******************************************************************************
    1024 BOOL WIN32API PtVisible( HDC arg1, int arg2, int  arg3)
    1025 {
    1026     dprintf(("GDI32: PtVisible"));
    1027     return O32_PtVisible(arg1, arg2, arg3);
    1028 }
    1029 //******************************************************************************
    1030 //******************************************************************************
    1031 BOOL WIN32API RectVisible( HDC arg1, const RECT * arg2)
    1032 {
    1033     dprintf(("GDI32: RectVisible\n"));
    1034     return O32_RectVisible(arg1, arg2);
     1044BOOL WIN32API PtVisible( HDC hdc, int x, int  y)
     1045{
     1046    dprintf(("GDI32: PtVisible %x (%d,%d)", hdc, x, y));
     1047    return O32_PtVisible(hdc, x, y);
     1048}
     1049//******************************************************************************
     1050//******************************************************************************
     1051BOOL WIN32API RectVisible( HDC hdc, const RECT *lpRect)
     1052{
     1053    if(lpRect == NULL) {
     1054       dprintf(("WARNING: GDI32: RectVisible %x lpRect == NULL!"));
     1055       return FALSE;
     1056    }   
     1057    dprintf(("GDI32: RectVisible %x (%d,%d)(%d,%d)", hdc, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom));
     1058    return O32_RectVisible(hdc, lpRect);
    10351059}
    10361060//******************************************************************************
     
    10511075//******************************************************************************
    10521076//******************************************************************************
    1053 BOOL WIN32API RestoreDC( HDC arg1, int  arg2)
    1054 {
    1055     dprintf(("GDI32: RestoreDC\n"));
    1056     return O32_RestoreDC(arg1, arg2);
     1077BOOL WIN32API RestoreDC(HDC hdc, int id)
     1078{
     1079 BOOL ret;
     1080
     1081    dprintf(("GDI32: RestoreDC %x %d", hdc, id));
     1082
     1083    ret = O32_RestoreDC(hdc, id);
     1084    if(ret == FALSE) {
     1085        dprintf(("ERROR: GDI32: RestoreDC %x %d FAILED", hdc, id));
     1086    }
     1087    return ret;
    10571088}
    10581089//******************************************************************************
     
    10651096//******************************************************************************
    10661097//******************************************************************************
    1067 int WIN32API SaveDC( HDC arg1)
    1068 {
    1069     dprintf(("GDI32: SaveDC"));
    1070     return O32_SaveDC(arg1);
     1098int WIN32API SaveDC( HDC hdc)
     1099{
     1100 int id;
     1101
     1102    dprintf(("GDI32: SaveDC %x", hdc));
     1103    id = O32_SaveDC(hdc);
     1104    if(id == 0) {
     1105         dprintf(("ERROR: GDI32: SaveDC %x FAILED", hdc));
     1106    }
     1107    else dprintf(("GDI32: SaveDC %x returned %d", hdc, id));
     1108    return id;
    10711109}
    10721110//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.