diff --git a/src/g_shared/shared_sbar.cpp b/src/g_shared/shared_sbar.cpp index f7054fe22c..28741ed479 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 {