gtk: dont crash when clicking hotkeys
This commit is contained in:
parent
f313f2fe8c
commit
c7868caea5
|
@ -91,15 +91,16 @@ void setCheckbox(GtkWidget* w, const char* configName)
|
||||||
// This function configures a single hotkey
|
// This function configures a single hotkey
|
||||||
int configHotkey(char* hotkeyString)
|
int configHotkey(char* hotkeyString)
|
||||||
{
|
{
|
||||||
|
// This is broken right now
|
||||||
//SDL_Surface *screen;
|
//SDL_Surface *screen;
|
||||||
SDL_Event event;
|
// SDL_Event event;
|
||||||
KillVideo();
|
// KillVideo();
|
||||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||||
return 0; // TODO - SDL 2.0
|
return 0; // TODO - SDL 2.0
|
||||||
#else
|
#else
|
||||||
//screen = SDL_SetVideoMode(420, 200, 8, 0);
|
//screen = SDL_SetVideoMode(420, 200, 8, 0);
|
||||||
//SDL_WM_SetCaption("Press a key to bind...", 0);
|
//SDL_WM_SetCaption("Press a key to bind...", 0);
|
||||||
|
/*
|
||||||
int newkey = 0;
|
int newkey = 0;
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
|
@ -116,7 +117,7 @@ int configHotkey(char* hotkeyString)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;*/
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
// This function configures a single button on a gamepad
|
// This function configures a single button on a gamepad
|
||||||
|
|
Loading…
Reference in New Issue