summaryrefslogtreecommitdiff
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
parente024f483c91b91da6d4e6c474eec143cdf0c6c84 (diff)
downloadManaVerse-8df35828d69f3debd89557a74c26359a8b249f87.tar.gz
ManaVerse-8df35828d69f3debd89557a74c26359a8b249f87.tar.bz2
ManaVerse-8df35828d69f3debd89557a74c26359a8b249f87.tar.xz
ManaVerse-8df35828d69f3debd89557a74c26359a8b249f87.zip
Disable unused SDL events.
-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);