From 8c35666e0f7d329b7c15e84f31e981aaefbc85dd Mon Sep 17 00:00:00 2001 From: rachytski Date: Sat, 2 Jun 2012 21:21:56 +0400 Subject: [PATCH] fixed bug with order of rendering. --- gui/button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/button.cpp b/gui/button.cpp index 8dc964a8ec..dd1ac461c9 100644 --- a/gui/button.cpp +++ b/gui/button.cpp @@ -111,7 +111,7 @@ namespace gui m2::RectD rc(0, 0, width() * k, height() * k); rc.Offset(tieRect(rc, m)); - r->drawRoundedRectangle(rc, 10 * k, color(state()), depth()); + r->drawRoundedRectangle(rc, 10 * k, color(state()), depth() - 1); yg::FontDesc desc = font(state()); desc.m_size *= k;