Ignore:
Timestamp:
Nov 5, 2000, 7:48:22 PM (25 years ago)
Author:
sandervl
Message:

rewrote transform +coordinate apis

File:
1 edited

Legend:

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

    r4552 r4557  
    1 /* $Id: region.cpp,v 1.15 2000-11-04 16:29:24 sandervl Exp $ */
     1/* $Id: region.cpp,v 1.16 2000-11-05 18:48:22 sandervl Exp $ */
    22
    33/*
     
    6767//******************************************************************************
    6868//******************************************************************************
    69 static LONG clientHeight(HWND hwnd, pDCData pHps)
     69static LONG hdcHeight(HWND hwnd, pDCData pHps)
    7070{
    7171    if(hwnd == 0 && pHps != 0)
    7272        hwnd = pHps->hwnd;
    73  
     73
    7474    if(hwnd != 0 || pHps == 0)
    7575    {
     
    112112//******************************************************************************
    113113//******************************************************************************
    114 static LONG clientWidth(HWND hwnd, pDCData pHps)
     114static LONG hdcWidth(HWND hwnd, pDCData pHps)
    115115{
    116116    if(hwnd == 0 && pHps != 0)
    117117        hwnd = pHps->hwnd;
    118  
     118
    119119    if(hwnd != 0 || pHps == 0)
    120120    {
     
    176176    }
    177177    else {
    178         wHeight = clientHeight(hwnd, pHps);
    179         wWidth  = clientWidth(hwnd, pHps);
     178        wHeight = hdcHeight(hwnd, pHps);
     179        wWidth  = hdcWidth(hwnd, pHps);
    180180    }
    181181
     
    565565            //Convert coordinates from PM to win32
    566566            if (pHps->yInvert > 0) {
    567                  LONG temp     = pHps->yInvert - rectl.yBottom;
     567             LONG temp     = pHps->yInvert - rectl.yBottom;
    568568                 rectl.yBottom = pHps->yInvert - rectl.yTop;
    569                  rectl.yTop    = temp;
     569             rectl.yTop    = temp;
    570570            }
    571571#endif
     
    589589    }
    590590//    if(lpRect->left == 0 && lpRect->top == 0 && lpRect->right == 0 && lpRect->bottom == 0)
    591 //      DebugInt3();
     591//  DebugInt3();
    592592    dprintf(("GDI32: GetClipBox of %X returned %d; (%d,%d)(%d,%d)", hdc, rc, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom));
    593593    return rc;
Note: See TracChangeset for help on using the changeset viewer.