Changeset 1034 for trunk/src/gui/painting/qwindowsurface_raster.cpp
- Timestamp:
- Aug 29, 2011, 1:43:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.