From 42beacc8f16a047018dd185aa6179c15465e4799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 19 Jan 2009 11:40:45 +0000 Subject: [PATCH] Fix buttons, patch by Knut Johansson . svn path=/trunk/KDE/kdebase/workspace/; revision=913425 --- clients/redmond/redmond.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/clients/redmond/redmond.cpp b/clients/redmond/redmond.cpp index 7ac5dad37c..7689bd6f8d 100644 --- a/clients/redmond/redmond.cpp +++ b/clients/redmond/redmond.cpp @@ -116,20 +116,20 @@ static inline const KDecorationOptions *options() static void drawButtonFrame( QPixmap *pix, const QPalette &g, bool sunken ) { QPainter p; - int x2 = pix->width() - 1; - int y2 = pix->height() - 1; + int x2 = pix->width() - 3; + int y2 = pix->height() - 3; p.begin(pix); // titlebar button frame p.setPen( sunken ? g.color(QPalette::Dark).dark(155) : g.color(QPalette::Light)); - p.drawLine(0, 0, x2-1, 0); - p.drawLine(0, 0, 0, y2-1); + p.drawLine(0, 0, x2, 0); + p.drawLine(0, 0, 0, y2); if (sunken) { p.setPen( g.color(QPalette::Mid).dark(135) ); - p.drawLine(1, 1, x2-2, 1); - p.drawLine(1, 1, 1, y2-2); + p.drawLine(1, 1, x2-1, 1); + p.drawLine(1, 1, 1, y2-1); } p.setPen( sunken ? g.color(QPalette::Light) : g.color(QPalette::Mid).dark(135));