From c7868caea5342f309b50478ac12099e9f76fb6a8 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Sat, 23 Apr 2016 01:50:42 +0000 Subject: [PATCH] gtk: dont crash when clicking hotkeys --- trunk/src/drivers/sdl/gui.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/trunk/src/drivers/sdl/gui.cpp b/trunk/src/drivers/sdl/gui.cpp index 5a27c5a9..7afc17f9 100644 --- a/trunk/src/drivers/sdl/gui.cpp +++ b/trunk/src/drivers/sdl/gui.cpp @@ -91,15 +91,16 @@ void setCheckbox(GtkWidget* w, const char* configName) // This function configures a single hotkey int configHotkey(char* hotkeyString) { + // This is broken right now //SDL_Surface *screen; - SDL_Event event; - KillVideo(); +// SDL_Event event; +// KillVideo(); #if SDL_VERSION_ATLEAST(2, 0, 0) return 0; // TODO - SDL 2.0 #else //screen = SDL_SetVideoMode(420, 200, 8, 0); //SDL_WM_SetCaption("Press a key to bind...", 0); - +/* int newkey = 0; while(1) { @@ -116,7 +117,7 @@ int configHotkey(char* hotkeyString) } } - return 0; + return 0;*/ #endif } // This function configures a single button on a gamepad