aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/surfacesdl/surfacesdl-graphics.h
diff options
context:
space:
mode:
authorJohannes Schickel2015-12-08 15:40:35 +0100
committerJohannes Schickel2015-12-08 15:43:36 +0100
commit457640a16257be20581080d6d682994cca94ba37 (patch)
tree1216614845c1c92ef5078d08338a5ca3aca9eb6c /backends/graphics/surfacesdl/surfacesdl-graphics.h
parent079037b73990b6107e59c7f1cd971c3a1cc221d1 (diff)
downloadscummvm-rg350-457640a16257be20581080d6d682994cca94ba37.tar.gz
scummvm-rg350-457640a16257be20581080d6d682994cca94ba37.tar.bz2
scummvm-rg350-457640a16257be20581080d6d682994cca94ba37.zip
SDL: Prevent cursor from leaving screen area in fullscreen with SDL2.
Diffstat (limited to 'backends/graphics/surfacesdl/surfacesdl-graphics.h')
-rw-r--r--backends/graphics/surfacesdl/surfacesdl-graphics.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.h b/backends/graphics/surfacesdl/surfacesdl-graphics.h
index 2431ce8664..07ff4e5926 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.h
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.h
@@ -171,6 +171,8 @@ protected:
* around this API to keep the code paths as close as possible. */
SDL_Renderer *_renderer;
SDL_Texture *_screenTexture;
+ int _viewportX, _viewportY;
+ float _mouseScaleX, _mouseScaleY;
void deinitializeRenderer();
SDL_Surface *SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags);