fixed rounding of bottom corners in tiny border mode

svn path=/trunk/KDE/kdebase/workspace/; revision=1016853
This commit is contained in:
Hugo Pereira Da Costa 2009-08-29 05:21:54 +00:00
parent 563191f51c
commit 66c1892947

View file

@ -330,7 +330,7 @@ namespace Nitrogen
int bottom = 1;
// disable bottom corners when border frame is too small
if( configuration().frameBorder() <= NitrogenConfiguration::BorderTiny ) bottom = 0;
if( configuration().frameBorder() < NitrogenConfiguration::BorderTiny ) bottom = 0;
int sw = layoutMetric( LM_OuterPaddingLeft );
int sh = layoutMetric( LM_OuterPaddingTop );
@ -775,7 +775,7 @@ namespace Nitrogen
// draw the corner of the window - actually all 4 corners as one circle
QLinearGradient lg = QLinearGradient(0.0, size-4.5, 0.0, size+4.5);
if( configuration().frameBorder() <= NitrogenConfiguration::BorderTiny )
if( configuration().frameBorder() < NitrogenConfiguration::BorderTiny )
{
lg.setColorAt(0, helper().backgroundTopColor(color) );