[ioquake3] 01/33: ignore window resize event on fullscreen
Simon McVittie
smcv at debian.org
Mon Oct 30 14:00:23 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit e0a367451f04988790384fc59d998b6dcb6bf2e3
Author: Eugene Molotov <em92 at users.noreply.github.com>
Date: Sun Sep 10 14:31:51 2017 +0500
ignore window resize event on fullscreen
---
code/sdl/sdl_input.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c
index 9abf149..9514636 100644
--- a/code/sdl/sdl_input.c
+++ b/code/sdl/sdl_input.c
@@ -1121,6 +1121,12 @@ static void IN_ProcessEvents( void )
width = e.window.data1;
height = e.window.data2;
+ // ignore this event on fullscreen
+ 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/ioquake3.git
More information about the Pkg-games-commits
mailing list