diff options
| author | Alyssa Milburn | 2014-07-04 22:37:43 +0200 | 
|---|---|---|
| committer | Alyssa Milburn | 2014-07-04 22:37:43 +0200 | 
| commit | 48564efc8812aef644144cb368d65a8d14a4397f (patch) | |
| tree | b4a5f42da8bd84b341fc3da3c5fae8c1bba23988 /backends/graphics | |
| parent | 5c51c97e9299a063204b75feec0ab43cf761d614 (diff) | |
| download | scummvm-rg350-48564efc8812aef644144cb368d65a8d14a4397f.tar.gz scummvm-rg350-48564efc8812aef644144cb368d65a8d14a4397f.tar.bz2 scummvm-rg350-48564efc8812aef644144cb368d65a8d14a4397f.zip | |
OPENGLSDL: Don't ignore events after user-initiated resizes.
Diffstat (limited to 'backends/graphics')
| -rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index c3584daa86..c998f3d1f1 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -356,10 +356,11 @@ bool OpenGLSdlGraphicsManager::setupMode(uint width, uint height) {  		setActualScreenSize(_hwScreen->w, _hwScreen->h);  	} -	// Ignore resize events (from SDL) for a few frames. This avoids -	// bad resizes to a (former) resolution for which we haven't -	// processed an event yet. -	_ignoreResizeEvents = 10; +	// Ignore resize events (from SDL) for a few frames, if this isn't +	// caused by a notification from SDL. This avoids bad resizes to a +	// (former) resolution for which we haven't processed an event yet. +	if (!_gotResize) +		_ignoreResizeEvents = 10;  	return _hwScreen != nullptr;  } | 
