From d6e141cc35e943efaac4c6028e5b4bab696a06cc Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 1 Feb 2006 22:39:54 +0000 Subject: Fix glitch when moving the mouse over a disabled, checked checkbox. (The check mark would become brighter, and I think it was because a transparent mark was drawn over a transparent mark, thus "amplifying" it.) svn-id: r20344 --- gui/ThemeNew.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/ThemeNew.cpp') diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp index 9ccfa616fa..ba2ccea1ba 100644 --- a/gui/ThemeNew.cpp +++ b/gui/ThemeNew.cpp @@ -586,8 +586,8 @@ void ThemeNew::drawCheckbox(const Common::Rect &r, const Common::String &str, bo const Graphics::Surface *checkBox = surface(checked ? kCheckboxChecked : kCheckboxEmpty); int checkBoxSize = checkBox->w; + restoreBackground(Common::Rect(r.left, r.top, r.left+checkBox->w, r.top+checkBox->h)); if (state == kStateHighlight && !checked) { - restoreBackground(Common::Rect(r.left, r.top, r.left+checkBox->w, r.top+checkBox->h)); checkBox = surface(!checked ? kCheckboxChecked : kCheckboxEmpty); drawSurface(Common::Rect(r.left, r.top, r.left+checkBox->w, r.top+checkBox->h), checkBox, false, false, 128); } else { -- cgit v1.2.3