Changeset 3709 for trunk/src


Ignore:
Timestamp:
Jun 14, 2000, 4:26:59 PM (25 years ago)
Author:
sandervl
Message:

GetClipBox bugfix

File:
1 edited

Legend:

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

    r3705 r3709  
    1 /* $Id: region.cpp,v 1.6 2000-06-14 13:17:51 sandervl Exp $ */
     1/* $Id: region.cpp,v 1.7 2000-06-14 14:26:59 sandervl Exp $ */
    22
    33/*
     
    567567            //the y-inversion of the window
    568568            //NOTE: YINVERSION dependancy
    569             lpRect->top    = rectl.yBottom;
    570             lpRect->bottom = rectl.yTop;
     569            if(rectl.yBottom > rectl.yTop) {
     570                lpRect->top    = rectl.yTop;
     571                lpRect->bottom = rectl.yBottom;
     572            }
     573            else {
     574                lpRect->top    = rectl.yBottom;
     575                lpRect->bottom = rectl.yTop;
     576            }
    571577
    572578            rc = (lComplexity == RGN_RECT) ? SIMPLEREGION_W : COMPLEXREGION_W;
    573579        }
    574580    }
    575     dprintf(("GDI32: GetClipBox of %X returned %d\n", hdc, rc));
     581    dprintf(("GDI32: GetClipBox of %X returned %d; (%d,%d)(%d,%d)", hdc, rc, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom));
    576582    return rc;
    577583}
Note: See TracChangeset for help on using the changeset viewer.