shithub: choc

Download patch

ref: c47a715ed8f0fb958a9ece5750f75856f252caa6
parent: 7dd42ec073e68d4c9a32418215704368e2088fc0
author: Fabian Greffrath <fabian@greffrath.com>
date: Wed May 31 04:14:09 EDT 2017

video: turn 500 ms delay into a constant

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -189,6 +189,7 @@
 
 static boolean need_resize = false;
 static unsigned int last_resize_time;
+#define RESIZE_DELAY 500
 
 // Gamma correction level to use
 
@@ -711,7 +712,7 @@
 
     if (need_resize)
     {
-        if (SDL_GetTicks() > last_resize_time + 500)
+        if (SDL_GetTicks() > last_resize_time + RESIZE_DELAY)
         {
             int flags;
             // When the window is resized (we're not in fullscreen mode),