From c53a4f3ae18ec5ff09e4d227f5532a6b612c7665 Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Sun, 22 Jul 2012 03:06:51 +0000 Subject: [PATCH] - Fixed: 1 pixel border was drawn when there was no status bar. SVN r3782 (trunk) --- src/g_shared/shared_sbar.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/g_shared/shared_sbar.cpp b/src/g_shared/shared_sbar.cpp index f7054fe22..28741ed47 100644 --- a/src/g_shared/shared_sbar.cpp +++ b/src/g_shared/shared_sbar.cpp @@ -1043,8 +1043,11 @@ void DBaseStatusBar::RefreshBackground () const if(!CompleteBorder) { - V_DrawBorder (x+1, y, SCREENWIDTH, y+1); - V_DrawBorder (x+1, SCREENHEIGHT-1, SCREENWIDTH, SCREENHEIGHT); + if(y < SCREENHEIGHT) + { + V_DrawBorder (x+1, y, SCREENWIDTH, y+1); + V_DrawBorder (x+1, SCREENHEIGHT-1, SCREENWIDTH, SCREENHEIGHT); + } } else {