- Timestamp:
- Dec 20, 2001, 8:57:01 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/dibsect.cpp
r7361 r7662 1 /* $Id: dibsect.cpp,v 1.6 0 2001-11-16 15:50:59 phallerExp $ */1 /* $Id: dibsect.cpp,v 1.61 2001-12-20 19:57:01 sandervl Exp $ */ 2 2 3 3 /* … … 495 495 } 496 496 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 497 510 //win32 coordinates are relative to left top, OS/2 expects left bottom 498 511 //source rectangle is non-inclusive (top, right not included) 499 512 //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 }508 513 509 514 point[0].x = nXdest; … … 512 517 point[1].y = hdcHeight - nYdest - 1; 513 518 514 //target rectangle is inclusive-inclusive 519 #if 0 520 //Don't check size here either. Let GpiDrawBits do that for us 515 521 if(nXsrc + nSrcWidth > pOS2bmp->cx) { 516 522 nSrcWidth = pOS2bmp->cx - nXsrc; … … 519 525 nSrcHeight = pOS2bmp->cy - nYsrc; 520 526 } 527 #endif 528 529 //target rectangle is inclusive-inclusive 521 530 point[2].x = nXsrc; 522 531 point[2].y = pOS2bmp->cy - nYsrc - nSrcHeight;
Note:
See TracChangeset
for help on using the changeset viewer.