summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-17 00:47:48 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-17 00:47:48 +0300
commit8df35828d69f3debd89557a74c26359a8b249f87 (patch)
tree6abe15efb41f104c09876698090c837e8bd3011d /src/client.cpp
parente024f483c91b91da6d4e6c474eec143cdf0c6c84 (diff)
downloadmanaplus-8df35828d69f3debd89557a74c26359a8b249f87.tar.gz
manaplus-8df35828d69f3debd89557a74c26359a8b249f87.tar.bz2
manaplus-8df35828d69f3debd89557a74c26359a8b249f87.tar.xz
manaplus-8df35828d69f3debd89557a74c26359a8b249f87.zip
Disable unused SDL events.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index bbb65a05c..f068e4304 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -373,6 +373,11 @@ void Client::gameInit()
SDL_EnableUNICODE(1);
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
+ // disable unused SDL events
+ SDL_EventState(SDL_VIDEOEXPOSE, SDL_IGNORE);
+ SDL_EventState(SDL_SYSWMEVENT, SDL_IGNORE);
+ SDL_EventState(SDL_USEREVENT, SDL_IGNORE);
+
SDL_WM_SetCaption(strprintf("%s %s",
branding.getStringValue("appName").c_str(),
SMALL_VERSION).c_str(), nullptr);