Changeset 1034 for trunk/src/gui/painting/qwindowsurface_pm.cpp
- Timestamp:
- Aug 29, 2011, 1:43:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/painting/qwindowsurface_pm.cpp
r1033 r1034 608 608 bmh.cy = d->image->height(); 609 609 610 #ifdef QT_PM_NATIVEWIDGETMASK 610 611 int wh = widget->height(); 611 612 … … 623 624 GpiSetClipRegion(wps, wrgn, &oldRgn); 624 625 wrgn = oldRgn; 625 626 #endif 626 627 // Note: target is inclusive-inclusive, source is inclusive-exclusive 627 628 POINTL ptls[] = { { wbr.left(), wbr.top() }, … … 631 632 GpiDrawBits(wps, (PVOID) const_cast<const QImage *>(d->image)->bits(), 632 633 (PBITMAPINFO2) &bmh, 4, ptls, ROP_SRCCOPY, BBO_IGNORE); 634 635 #ifdef QT_PM_NATIVEWIDGETMASK 633 636 } 634 637 635 638 if (wrgn != NULLHANDLE) 636 639 GpiDestroyRegion(wps, wrgn); 640 #endif 637 641 638 642 widget->releasePS(wps); … … 696 700 HWND hwndWidget = widget->internalWinId(); 697 701 ULONG rc = WinQueryVisibleRegion(hwndWidget, hrgn); 702 #ifdef QT_PM_NATIVEWIDGETMASK 698 703 if (rc != RGN_ERROR) { 699 704 // substract children from the visible region, if any 700 705 rc = qt_WinProcessWindowObstacles(hwndWidget, NULL, hrgn, 701 706 CRGN_DIFF, PWO_Children); 707 #endif 702 708 if (rc != RGN_ERROR && hwnd != hwndWidget) { 703 709 // translate coords to the main widget's coordinate space … … 708 714 GpiOffsetRegion(hps, hrgn, &ptlOffset); 709 715 } 710 } 716 #ifdef QT_PM_NATIVEWIDGETMASK 717 } 718 #endif 711 719 712 720 if (rc == RGN_RECT || rc == RGN_COMPLEX) {
Note:
See TracChangeset
for help on using the changeset viewer.