|
|
|
@ -1856,16 +1856,24 @@ void TQPainter::drawWinFocusRect( int x, int y, int w, int h,
|
|
|
|
|
RasterOp old_rop = (RasterOp)rop;
|
|
|
|
|
|
|
|
|
|
if ( xorPaint ) {
|
|
|
|
|
if ( TQColor::numBitPlanes() <= 8 )
|
|
|
|
|
if ( TQColor::numBitPlanes() <= 8 ) {
|
|
|
|
|
setPen( TQPen(color1, 0, TQt::FineDotLine) );
|
|
|
|
|
else
|
|
|
|
|
}
|
|
|
|
|
else if ( TQColor::numBitPlanes() <= 8 ) {
|
|
|
|
|
setPen( TQPen(white, 0, TQt::FineDotLine) );
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
setPen( TQPen(TQColor(tqRgba(255,255,255,0)), 0, TQt::FineDotLine) );
|
|
|
|
|
}
|
|
|
|
|
setRasterOp( XorROP );
|
|
|
|
|
} else {
|
|
|
|
|
if ( tqGray( bgColor.rgb() ) < 128 )
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
if ( tqGray( bgColor.rgb() ) < 128 ) {
|
|
|
|
|
setPen( TQPen(white, 0, TQt::FineDotLine) );
|
|
|
|
|
else
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
setPen( TQPen(black, 0, TQt::FineDotLine) );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( testf(ExtDev|VxF|WxF) ) {
|
|
|
|
@ -1893,6 +1901,7 @@ void TQPainter::drawWinFocusRect( int x, int y, int w, int h,
|
|
|
|
|
XSetLineAttributes( dpy, gc, 1, LineOnOffDash, CapButt, JoinMiter );
|
|
|
|
|
|
|
|
|
|
XDrawRectangle( dpy, hd, gc, x, y, w-1, h-1 );
|
|
|
|
|
|
|
|
|
|
XSetLineAttributes( dpy, gc, 0, LineSolid, CapButt, JoinMiter );
|
|
|
|
|
setRasterOp( old_rop );
|
|
|
|
|
setPen( old_pen );
|
|
|
|
|