This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to tag 1.51
in repository iortcw.

commit fd4f3bf126f1e8852eaba4076e9f47e1b6f963ee
Author: MAN-AT-ARMS <m4n4t4...@gmail.com>
Date:   Sun Feb 26 04:54:53 2017 -0500

    All: Don't process a resize event if r_fullscreen is 1
---
 MP/code/sdl/sdl_input.c | 8 ++++++++
 SP/code/sdl/sdl_input.c | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/MP/code/sdl/sdl_input.c b/MP/code/sdl/sdl_input.c
index dad153c..cafac76 100644
--- a/MP/code/sdl/sdl_input.c
+++ b/MP/code/sdl/sdl_input.c
@@ -1129,6 +1129,14 @@ static void IN_ProcessEvents( void )
                                                        width = e.window.data1;
                                                        height = e.window.data2;
 
+                                                       // check for fullscreen
+                                                       // 
SDL_WINDOWEVENT_RESIZED occurs when requested resolution != given resolution
+                                                       // This prevents an 
infinite vid_restart loop 
+                                                       if( 
cls.glconfig.isFullscreen )
+                                                       {
+                                                               break;
+                                                       }
+
                                                        // check if size 
actually changed
                                                        if( 
cls.glconfig.vidWidth == width && cls.glconfig.vidHeight == height )
                                                        {
diff --git a/SP/code/sdl/sdl_input.c b/SP/code/sdl/sdl_input.c
index dad153c..cafac76 100644
--- a/SP/code/sdl/sdl_input.c
+++ b/SP/code/sdl/sdl_input.c
@@ -1129,6 +1129,14 @@ static void IN_ProcessEvents( void )
                                                        width = e.window.data1;
                                                        height = e.window.data2;
 
+                                                       // check for fullscreen
+                                                       // 
SDL_WINDOWEVENT_RESIZED occurs when requested resolution != given resolution
+                                                       // This prevents an 
infinite vid_restart loop 
+                                                       if( 
cls.glconfig.isFullscreen )
+                                                       {
+                                                               break;
+                                                       }
+
                                                        // check if size 
actually changed
                                                        if( 
cls.glconfig.vidWidth == width && cls.glconfig.vidHeight == height )
                                                        {

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to