Changeset 7662 for trunk/src


Ignore:
Timestamp:
Dec 20, 2001, 8:57:01 PM (24 years ago)
Author:
sandervl
Message:

DIB Section blit: don't check source & destination sizes with DC size (GpiDrawBits does that for us)

File:
1 edited

Legend:

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

    r7361 r7662  
    1 /* $Id: dibsect.cpp,v 1.60 2001-11-16 15:50:59 phaller Exp $ */
     1/* $Id: dibsect.cpp,v 1.61 2001-12-20 19:57:01 sandervl Exp $ */
    22
    33/*
     
    495495  }
    496496
     497  //Don't clip destination size to destination DC size
     498  //This messes up the two bitmaps in the opening window of Opera 6
     499  //(choice between MDI & SDI interface)
     500#if 0
     501  if(nXdest + nDestWidth > hdcWidth) {
     502        nDestWidth  = hdcWidth - nXdest;
     503  }
     504
     505  if(nYdest + nDestHeight > hdcHeight) {
     506        nDestHeight = hdcHeight - nYdest;
     507  }
     508#endif
     509
    497510  //win32 coordinates are relative to left top, OS/2 expects left bottom
    498511  //source rectangle is non-inclusive (top, right not included)
    499512  //destination rectangle is incl.-inclusive (everything included)
    500 
    501   if(nXdest + nDestWidth > hdcWidth) {
    502         nDestWidth  = hdcWidth - nXdest;
    503   }
    504 
    505   if(nYdest + nDestHeight > hdcHeight) {
    506         nDestHeight = hdcHeight - nYdest;
    507   }
    508513
    509514  point[0].x = nXdest;
     
    512517  point[1].y = hdcHeight - nYdest - 1;
    513518
    514   //target rectangle is inclusive-inclusive
     519#if 0
     520  //Don't check size here either. Let GpiDrawBits do that for us
    515521  if(nXsrc + nSrcWidth > pOS2bmp->cx) {
    516522        nSrcWidth  = pOS2bmp->cx - nXsrc;
     
    519525        nSrcHeight = pOS2bmp->cy - nYsrc;
    520526  }
     527#endif
     528
     529  //target rectangle is inclusive-inclusive
    521530  point[2].x = nXsrc;
    522531  point[2].y = pOS2bmp->cy - nYsrc - nSrcHeight;
Note: See TracChangeset for help on using the changeset viewer.