Changeset 1034 for trunk/src/gui/painting
- Timestamp:
- Aug 29, 2011, 1:43:52 AM (14 years ago)
- Location:
- trunk/src/gui/painting
- Files:
-
- 2 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) { -
trunk/src/gui/painting/qwindowsurface_raster.cpp
r846 r1034 248 248 int ih = img.height(); 249 249 250 #ifdef QT_PM_NATIVEWIDGETMASK 250 251 // produce a clip region that excludes all descending obstacles 251 252 // (like child widgets with real HWNDs which are not excluded by Qt) … … 261 262 GpiSetClipRegion(wps, wrgn, &oldRgn); 262 263 wrgn = oldRgn; 263 264 #endif 264 265 // Note: target is inclusive-inclusive, source is inclusive-exclusive 265 266 POINTL ptls[] = { { wbr.left(), wh - wbr.bottom() - 1 }, … … 275 276 GpiDrawBits(wps, (PVOID) img.bits(), (PBITMAPINFO2) &bmh, 4, ptls, 276 277 ROP_SRCCOPY, BBO_IGNORE); 278 279 #ifdef QT_PM_NATIVEWIDGETMASK 277 280 } 278 281 279 282 if (wrgn != NULLHANDLE) 280 283 GpiDestroyRegion(wps, wrgn); 284 #endif 281 285 282 286 #elif QT_BITMAP_MIRROR == 2 … … 306 310 bmh.cy = d->image->height(); 307 311 312 #ifdef QT_PM_NATIVEWIDGETMASK 308 313 int wh = widget->height(); 309 314 … … 321 326 GpiSetClipRegion(wps, wrgn, &oldRgn); 322 327 wrgn = oldRgn; 323 328 #endif 324 329 // Note: target is inclusive-inclusive, source is inclusive-exclusive 325 330 POINTL ptls[] = { { wbr.left(), wbr.top() }, … … 343 348 344 349 GpiEnableYInversion(wps, oldInversion); 350 351 #ifdef QT_PM_NATIVEWIDGETMASK 345 352 } 346 353 347 354 if (wrgn != NULLHANDLE) 348 355 GpiDestroyRegion(wps, wrgn); 356 #endif 349 357 350 358 #ifndef QT_NO_DEBUG … … 391 399 bmh.cy = d->image->height(); 392 400 401 #ifdef QT_PM_NATIVEWIDGETMASK 393 402 int wh = widget->height(); 394 403 … … 406 415 GpiSetClipRegion(wps, wrgn, &oldRgn); 407 416 wrgn = oldRgn; 408 417 #endif 409 418 // Note: target is inclusive-inclusive, source is inclusive-exclusive 410 419 POINTL ptls[] = { { wbr.left(), wbr.top() }, … … 414 423 GpiDrawBits(wps, (PVOID) const_cast<const QImage &>(d->image->image).bits(), 415 424 (PBITMAPINFO2) &bmh, 4, ptls, ROP_SRCCOPY, BBO_IGNORE); 425 426 #ifdef QT_PM_NATIVEWIDGETMASK 416 427 } 417 428 418 429 if (wrgn != NULLHANDLE) 419 430 GpiDestroyRegion(wps, wrgn); 431 #endif 420 432 421 433 #ifndef QT_NO_DEBUG
Note:
See TracChangeset
for help on using the changeset viewer.