From bada44a291facbd89a133c72304749bfe9563a86 Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Mon, 20 Dec 2010 22:29:15 +0000 Subject: [PATCH] - Fixed: The background on some bars was cliped incorrectly. SVN r3065 (trunk) --- src/g_shared/sbarinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_shared/sbarinfo.cpp b/src/g_shared/sbarinfo.cpp index a552a3ad1..c469bb736 100644 --- a/src/g_shared/sbarinfo.cpp +++ b/src/g_shared/sbarinfo.cpp @@ -1190,7 +1190,7 @@ public: } if(clearDontDraw) - screen->Clear(static_cast(MAX(dx, dcx)), static_cast(MAX(dy, dcy)), static_cast(dcr), static_cast(dcb), GPalette.BlackIndex, 0); + screen->Clear(static_cast(MAX(dx, dcx)), static_cast(MAX(dy, dcy)), static_cast(MIN(dcr,w+MAX(dx, dcx))), static_cast(MIN(dcb,MAX(dy, dcy)+h)), GPalette.BlackIndex, 0); else { if(alphaMap)