- Timestamp:
- Jun 11, 2010, 4:45:27 PM (15 years ago)
- Location:
- trunk/src/gui/painting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/painting/qwindowsurface_pm.cpp
r744 r745 403 403 QRect br = rgn.boundingRect(); 404 404 405 QPoint wOffset = qt_qwidget_data(widget)->wrect.topLeft();406 QRect wbr = br.translated(-wOffset);407 405 br.translate(offset); 408 406 … … 432 430 br = br.intersected(QRect(0, 0, d->image->width(), d->image->height())); 433 431 432 QPoint wOffset = qt_qwidget_data(widget)->wrect.topLeft(); 433 // note that we remove offset from wbr because the widget's HPS has a proper 434 // origin already that includes this offset (which is in fact a position of 435 // the widget relative to its top-level parent) 436 QRect wbr = br.translated(-offset - wOffset); 437 434 438 BITMAPINFOHEADER2 bmh; 435 439 memset(&bmh, 0, sizeof(BITMAPINFOHEADER2)); … … 452 456 return; 453 457 } 458 459 QPoint wOffset = qt_qwidget_data(widget)->wrect.topLeft(); 460 // note that we leave offset in wbr since in DIVE mode the origin of the 461 // blit target is always the top level window so we need to properly offset 462 // the target position if we are flushing its child widget 463 QRect wbr = br.translated(-wOffset); 454 464 455 465 if (d->vrnDisabled) { -
trunk/src/gui/painting/qwindowsurface_raster.cpp
r719 r745 232 232 233 233 QPoint wOffset = qt_qwidget_data(widget)->wrect.topLeft(); 234 // note that we remove offset from wbr because the widget's HPS has a proper 235 // origin already that includes this offset (which is in fact a position of 236 // the widget relative to its top-level parent) 234 237 QRect wbr = br.translated(-offset - wOffset); 235 238 … … 272 275 273 276 QPoint wOffset = qt_qwidget_data(widget)->wrect.topLeft(); 277 // note that we remove offset from wbr because the widget's HPS has a proper 278 // origin already that includes this offset (which is in fact a position of 279 // the widget relative to its top-level parent) 274 280 QRect wbr = br.translated(-offset - wOffset); 275 281 … … 334 340 335 341 QPoint wOffset = qt_qwidget_data(widget)->wrect.topLeft(); 342 // note that we remove offset from wbr because the widget's HPS has a proper 343 // origin already that includes this offset (which is in fact a position of 344 // the widget relative to its top-level parent) 336 345 QRect wbr = br.translated(-offset - wOffset); 337 346
Note:
See TracChangeset
for help on using the changeset viewer.