shithub: choc

Download patch

ref: 8d36576277fc6dfbf13663d7edbbf20dd7c15466
parent: 7a29515569b6543c31b1fc0b2ef4875ab75708b6
author: Fabian Greffrath <fabian@greffrath.com>
date: Mon Sep 7 02:33:36 EDT 2015

Strife: force redraw of the screen border after drawing the disk icon

--- a/src/strife/d_main.c
+++ b/src/strife/d_main.c
@@ -217,6 +217,7 @@
     boolean                     done;
     boolean                     wipe;
     boolean                     redrawsbar;
+    static boolean force_borderdraw = false;
 
     if (nodrawers)
         return;                    // for comparative timing / profiling
@@ -300,10 +301,11 @@
     // 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 @@
     // normal update
     if (!wipe)
     {
+        if (disk_indicator)
+        {
+            force_borderdraw = true;
+        }
+
         I_FinishUpdate ();              // page flip or blit buffer
         return;
     }