diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-13 09:51:31 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-13 09:51:31 -0500 |
commit | be8d88eef8e7ab7c6bbfb6d553b34b4a9a3a7755 (patch) | |
tree | a2690409765a20db6c89a3980e536d397ee45b97 /src | |
parent | e43d1ae2d91a188e8a0cfd49a6be8762bb5c6cf0 (diff) | |
download | qt3-be8d88eef8e7ab7c6bbfb6d553b34b4a9a3a7755.tar.gz qt3-be8d88eef8e7ab7c6bbfb6d553b34b4a9a3a7755.zip |
Fix focus rectangle fill when brush is set on call to focus rectangle paint method
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel/qpainter_x11.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/qpainter_x11.cpp b/src/kernel/qpainter_x11.cpp index 126c0d6..fd6979b 100644 --- a/src/kernel/qpainter_x11.cpp +++ b/src/kernel/qpainter_x11.cpp @@ -1839,7 +1839,8 @@ void QPainter::drawWinFocusRect( int x, int y, int w, int h, static char winfocus_line[] = { 1, 1 }; QPen old_pen = cpen; - RasterOp old_rop = (RasterOp)rop; + QBrush old_brush = cbrush; + RasterOp old_rop = (RasterOp)rop; if ( xorPaint ) { if ( QColor::numBitPlanes() <= 8 ) @@ -1858,10 +1859,13 @@ void QPainter::drawWinFocusRect( int x, int y, int w, int h, if ( testf(ExtDev) ) { QPDevCmdParam param[1]; QRect r( x, y, w-1, h-1 ); + QBrush noBrush; param[0].rect = &r; + param[0].brush = &noBrush; if ( !pdev->cmd( QPaintDevice::PdcDrawRect, this, param ) || !hd) { setRasterOp( old_rop ); setPen( old_pen ); + setBrush( old_brush ); return; } } |