From bdceb581fd59a081aae2708af766f5930ca9647b Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 29 May 2006 14:16:52 +0000 Subject: - cleanup - uses working getColorAlphaImpl for alpha == 0 in getColorAlpha svn-id: r22740 --- gui/ThemeNew.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gui/ThemeNew.cpp') diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp index 55bb334485..ed1c64374f 100644 --- a/gui/ThemeNew.cpp +++ b/gui/ThemeNew.cpp @@ -641,7 +641,6 @@ void ThemeNew::drawSurface(const Common::Rect &r, const Graphics::Surface &surfa drawSurface(rect, &surface, false, false, alpha); addDirtyRect(rect); - return; } void ThemeNew::drawSlider(const Common::Rect &rr, int width, kState state) { @@ -1628,7 +1627,7 @@ inline OverlayColor getColorAlphaImp2(OverlayColor col1, OverlayColor col2, int } OverlayColor getColorAlpha(OverlayColor col1, OverlayColor col2, int alpha) { - if (alpha > 0) { + if (alpha >= 0) { if (gBitFormat == 565) { return getColorAlphaImpl >(col1, col2, alpha); } else { -- cgit v1.2.3