Changeset 3798 for trunk/src


Ignore:
Timestamp:
Jul 4, 2000, 10:40:14 AM (25 years ago)
Author:
sandervl
Message:

Rewrote Set/GetViewportExtEx, Set/GetMapMode & moved them from gdi32 to user32

File:
1 edited

Legend:

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

    r3705 r3798  
    1 /* $Id: gdi32.cpp,v 1.51 2000-06-14 13:17:50 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.52 2000-07-04 08:40:14 sandervl Exp $ */
    22
    33/*
     
    756756//******************************************************************************
    757757//******************************************************************************
    758 int WIN32API GetMapMode( HDC hdc)
    759 {
    760     dprintf(("GDI32: GetMapMode %x", hdc));
    761     return O32_GetMapMode(hdc);
    762 }
    763 //******************************************************************************
    764 //******************************************************************************
    765758BOOL WIN32API GetMiterLimit( HDC arg1, float * arg2)
    766759{
     
    949942//******************************************************************************
    950943//******************************************************************************
    951 BOOL WIN32API GetViewportExtEx( HDC arg1, PSIZE  arg2)
    952 {
    953     dprintf(("GDI32: GetViewportExtEx"));
    954     return O32_GetViewportExtEx(arg1, arg2);
    955 }
    956 //******************************************************************************
    957 //******************************************************************************
    958 BOOL WIN32API GetViewportOrgEx( HDC arg1, PPOINT  arg2)
    959 {
    960     dprintf(("GDI32: GetViewportOrgEx"));
    961     return O32_GetViewportOrgEx(arg1, arg2);
    962 }
    963 //******************************************************************************
    964 //******************************************************************************
    965 BOOL WIN32API GetWindowOrgEx( HDC arg1, PPOINT  arg2)
    966 {
    967     dprintf(("GDI32: GetWindowOrgEx"));
    968     return O32_GetWindowOrgEx(arg1, arg2);
     944BOOL WIN32API GetViewportOrgEx( HDC hdc, PPOINT pPoint)
     945{
     946 BOOL rc;
     947
     948    rc = O32_GetViewportOrgEx(hdc, pPoint);
     949    if(pPoint) {
     950         dprintf(("GDI32: GetViewportOrgEx %x returned %d (%d,%d)", hdc, rc, pPoint->x, pPoint->y));
     951    }
     952    else dprintf(("GDI32: GetViewportOrgEx %x NULL returned %d (%d,%d)", hdc, rc));
     953    return rc;
     954}
     955//******************************************************************************
     956//******************************************************************************
     957BOOL WIN32API GetWindowOrgEx(HDC hdc, PPOINT pPoint)
     958{
     959 BOOL rc;
     960
     961    rc = O32_GetWindowOrgEx(hdc, pPoint);
     962    if(pPoint) {
     963         dprintf(("GDI32: GetWindowOrgEx %x returned %d (%d,%d)", hdc, rc, pPoint->x, pPoint->y));
     964    }
     965    else dprintf(("GDI32: GetWindowOrgEx %x NULL returned %d", hdc, rc));
     966    return rc;
    969967}
    970968//******************************************************************************
     
    11551153//******************************************************************************
    11561154//******************************************************************************
    1157 ODINFUNCTION2(int, SetMapMode, HDC, hdc, int, fnMapMode)
    1158 {
    1159     return O32_SetMapMode(hdc, fnMapMode);
    1160 }
    1161 //******************************************************************************
    1162 //******************************************************************************
    11631155ODINFUNCTION2(DWORD, SetMapperFlags, HDC, hdc, DWORD, dwFlag)
    11641156{
     
    11971189//******************************************************************************
    11981190//******************************************************************************
    1199 BOOL WIN32API SetViewportExtEx( HDC arg1, int arg2, int arg3, PSIZE  arg4)
    1200 {
    1201     dprintf(("GDI32: SetViewportExtEx"));
    1202     return O32_SetViewportExtEx(arg1, arg2, arg3, arg4);
    1203 }
    1204 //******************************************************************************
    1205 //******************************************************************************
    1206 BOOL WIN32API SetViewportOrgEx( HDC arg1, int arg2, int arg3, PPOINT  arg4)
    1207 {
    1208     dprintf(("GDI32: SetViewportOrgEx"));
    1209     return O32_SetViewportOrgEx(arg1, arg2, arg3, arg4);
     1191BOOL WIN32API SetViewportOrgEx( HDC hdc, int x, int y, PPOINT lpPoint)
     1192{
     1193    if(lpPoint) {
     1194         dprintf(("GDI32: SetViewportOrgEx %x %d %d (%d,%d)", hdc, x, y, lpPoint->x, lpPoint->y));
     1195    }
     1196    else dprintf(("GDI32: SetViewportOrgEx %x %d %d NULL", hdc, x, y));
     1197    return O32_SetViewportOrgEx(hdc, x, y, lpPoint);
    12101198}
    12111199//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.