commit 8d36576277fc6dfbf13663d7edbbf20dd7c15466
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Mon Sep 7 06:33:36 2015 +0200
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Mon Sep 7 06:33:36 2015 +0200
Strife: force redraw of the screen border after drawing the disk icon
---
src/strife/d_main.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/strife/d_main.c b/src/strife/d_main.c
index 42f8a446..4353b640 100644
--- a/src/strife/d_main.c
+++ b/src/strife/d_main.c
@@ -217,6 +217,7 @@ void D_Display (void)
boolean done;
boolean wipe;
boolean redrawsbar;
+ static boolean force_borderdraw = false;
if (nodrawers)
return; // for comparative timing / profiling
@@ -300,10 +301,11 @@ void D_Display (void)
// see if the border needs to be updated to the screen
if (gamestate == GS_LEVEL && !automapactive && scaledviewwidth != 320)
{
- if (menuactive || menuactivestate || !viewactivestate)
+ if (menuactive || menuactivestate || !viewactivestate || force_borderdraw)
{
borderdrawcount = 3;
popupactivestate = false;
+ force_borderdraw = false;
}
if (borderdrawcount)
{
@@ -358,6 +360,11 @@ void D_Display (void)
// normal update
if (!wipe)
{
+ if (disk_indicator)
+ {
+ force_borderdraw = true;
+ }
+
I_FinishUpdate (); // page flip or blit buffer
return;
}