diff options
author | Torbjörn Andersson | 2006-02-01 22:39:54 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-02-01 22:39:54 +0000 |
commit | d6e141cc35e943efaac4c6028e5b4bab696a06cc (patch) | |
tree | 4c8b2988adf82d655af272c4a24b885a333a50b1 | |
parent | 12133dfb4f29b381a6841060404633157b0d6975 (diff) | |
download | scummvm-rg350-d6e141cc35e943efaac4c6028e5b4bab696a06cc.tar.gz scummvm-rg350-d6e141cc35e943efaac4c6028e5b4bab696a06cc.tar.bz2 scummvm-rg350-d6e141cc35e943efaac4c6028e5b4bab696a06cc.zip |
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
-rw-r--r-- | gui/ThemeNew.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |