Changeset 63
- Timestamp:
- Feb 25, 2006, 9:58:01 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/qwidget.h
r61 r63 599 599 friend class QDragManager; 600 600 #elif defined (Q_WS_PM) 601 enum ClipMode { Unclipped, ClipAll, ClipSiblings };602 HPS getTargetPS( ClipMode m = Clip All);601 enum ClipMode { ClipDefault, Unclipped, ClipAll, ClipSiblings }; 602 HPS getTargetPS( ClipMode m = ClipDefault ); 603 603 friend Q_EXPORT void bitBlt( QPaintDevice *, int, int, 604 604 const QPaintDevice *, -
trunk/src/kernel/qpainter_pm.cpp
r62 r63 539 539 } else { 540 540 hps = w->getTargetPS ( unclipped ? QWidget::Unclipped : 541 QWidget::Clip All);541 QWidget::ClipDefault ); 542 542 w->hps = hps; 543 543 } … … 931 931 // } 932 932 #endif 933 // clip region in GPI cannot be used for anything else, so detach it 934 cur_crgn.detach(); 933 935 } else { 934 936 cur_crgn = def_crgn; 935 937 } 936 938 937 // clip region in GPI cannot be used for anything else, so detach it938 cur_crgn.detach();939 940 939 if ( !cur_crgn.isNull() ) 941 940 GpiSetClipRegion( hps, cur_crgn.handle( devh ), NULL ); -
trunk/src/kernel/qwidget_pm.cpp
r61 r63 994 994 #if defined (DEBUG_REPAINTRESIZE) 995 995 qDebug( "repaint(): [%s/%s/%08X] <region> erase: %d resizeNoErase: %d", 996 name(), className(), widget_flags, 996 name(), className(), widget_flags, erase, 997 997 (testWFlags( WResizeNoErase ) != 0) ); 998 998 #endif … … 1405 1405 } else if ( !hps ) { 1406 1406 tmphps = TRUE; 1407 lhps = getTargetPS( );1407 lhps = getTargetPS( ClipAll ); 1408 1408 } else { 1409 1409 tmphps = FALSE; … … 1440 1440 } else if ( !hps ) { 1441 1441 tmphps = TRUE; 1442 lhps = getTargetPS( );1442 lhps = getTargetPS( ClipAll ); 1443 1443 } else { 1444 1444 tmphps = FALSE; … … 1872 1872 * The returned handle must be freed using WinReleasePS() after usage. 1873 1873 */ 1874 HPS QWidget::getTargetPS( ClipMode m /* = Clip All*/ )1874 HPS QWidget::getTargetPS( ClipMode m /* = ClipDefault */ ) 1875 1875 { 1876 1876 HPS widgetPS = 0; … … 1879 1879 widgetPS = WinGetScreenPS( HWND_DESKTOP ); 1880 1880 } else { 1881 if ( m == Unclipped || testWFlags( WPaintUnclipped ) ) { 1881 if ( m == Unclipped || (m == ClipDefault && 1882 testWFlags( WPaintUnclipped )) ) { 1882 1883 widgetPS = WinGetClipPS( winId(), 0, PSF_PARENTCLIP ); 1883 1884 } else {
Note:
See TracChangeset
for help on using the changeset viewer.