foxygit / doom Log in
commit c47a715ed8f0fb958a9ece5750f75856f252caa6
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Wed May 31 08:14:09 2017 +0200
Commit:     Fabian Greffrath <fabian@greffrath.com>
CommitDate: Wed May 31 08:14:09 2017 +0200

    video: turn 500 ms delay into a constant
---
 src/i_video.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/i_video.c b/src/i_video.c
index 75238f0f..a8bf130a 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -189,6 +189,7 @@ static boolean window_focused = true;

 static boolean need_resize = false;
 static unsigned int last_resize_time;
+#define RESIZE_DELAY 500

 // Gamma correction level to use

@@ -711,7 +712,7 @@ void I_FinishUpdate (void)

     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),