diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-17 00:47:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-17 00:47:48 +0300 |
commit | 8df35828d69f3debd89557a74c26359a8b249f87 (patch) | |
tree | 6abe15efb41f104c09876698090c837e8bd3011d | |
parent | e024f483c91b91da6d4e6c474eec143cdf0c6c84 (diff) | |
download | ManaVerse-8df35828d69f3debd89557a74c26359a8b249f87.tar.gz ManaVerse-8df35828d69f3debd89557a74c26359a8b249f87.tar.bz2 ManaVerse-8df35828d69f3debd89557a74c26359a8b249f87.tar.xz ManaVerse-8df35828d69f3debd89557a74c26359a8b249f87.zip |
Disable unused SDL events.
-rw-r--r-- | src/client.cpp | 5 |
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); |