Changeset 4574 for trunk/src/gdi32/dibsect.cpp
- Timestamp:
- Nov 9, 2000, 7:16:57 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/dibsect.cpp
r4450 r4574 1 /* $Id: dibsect.cpp,v 1.4 1 2000-10-07 11:39:16 sandervl Exp $ */1 /* $Id: dibsect.cpp,v 1.42 2000-11-09 18:16:56 sandervl Exp $ */ 2 2 3 3 /* … … 395 395 //****************************************************************************** 396 396 //****************************************************************************** 397 int DIBSection::SetDIBColorTable(int startIdx, int cEntries, PALETTEENTRY *palentry) 398 { 399 int i; 400 401 if(startIdx + cEntries > (1 << pOS2bmp->cBitCount)) 402 { 403 dprintf(("DIBSection::SetDIBColorTable, invalid nr of entries %d %d\n", startIdx, cEntries)); 404 return(0); 405 } 406 407 for(i=startIdx;i<cEntries;i++) 408 { 409 pOS2bmp->argbColor[i].fcOptions = 0; 410 pOS2bmp->argbColor[i].bBlue = palentry[i].peBlue; 411 pOS2bmp->argbColor[i].bGreen = palentry[i].peGreen; 412 pOS2bmp->argbColor[i].bRed = palentry[i].peRed; 413 } 414 415 return(cEntries); 416 } 417 //****************************************************************************** 418 //****************************************************************************** 397 419 BOOL DIBSection::BitBlt(HDC hdcDest, int nXdest, int nYdest, int nDestWidth, 398 420 int nDestHeight, int nXsrc, int nYsrc, … … 428 450 429 451 if(fFrameWindowDC) { 430 GetWindowRect(hwndDest, &rect);452 GetWindowRect(hwndDest, &rect); 431 453 } 432 454 else GetClientRect(hwndDest, &rect); … … 488 510 } 489 511 */ 512 #ifdef INVERT 490 513 oldyinversion = GpiQueryYInversion(hps); 491 514 if(oldyinversion != 0) { … … 493 516 fRestoryYInversion = TRUE; 494 517 } 518 #endif 519 520 #ifdef DEBUG 521 RECTL rcltemp; 522 GreGetDCOrigin(hps, (PPOINTL)&rcltemp); 523 dprintf(("origin (%d,%d) yinv %d", rcltemp.xLeft, rcltemp.yBottom, oldyinversion)); 524 #endif 495 525 496 526 if(fFlip & FLIP_HOR) … … 572 602 destdib->sync(hps, nYdest, nDestHeight); 573 603 } 604 #ifdef INVERT 574 605 //restore old y inversion height 575 606 if(fRestoryYInversion) GpiEnableYInversion(hps, oldyinversion); 607 #endif 576 608 SetLastError(ERROR_SUCCESS_W); 577 609 578 610 return(TRUE); 579 611 } 612 #ifdef INVERT 580 613 if(fRestoryYInversion) GpiEnableYInversion(hps, oldyinversion); 614 #endif 581 615 582 616 dprintf(("DIBSection::BitBlt %X (%d,%d) (%d,%d) to (%d,%d) (%d,%d) returned %d\n", hps, point[0].x, point[0].y, point[1].x, point[1].y, point[2].x, point[2].y, point[3].x, point[3].y, rc));
Note:
See TracChangeset
for help on using the changeset viewer.