sdl: attempt at gtk3/osx compatibilty

This commit is contained in:
punkrockguy318 2016-04-01 00:12:05 +00:00
parent a67274689c
commit a4fecfa67b
2 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,9 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#ifdef _GTK3
#include <gdk/gdkkeysyms-compat.h>

View File

@ -42,6 +42,8 @@
#ifdef _GTK
#include "gui.h"
#endif
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
@ -399,7 +401,7 @@ InitVideo(FCEUGI *gi)
}
#endif
#if defined(_GTK) && defined(SDL_VIDEO_DRIVER_X11)
#if defined(_GTK) && defined(SDL_VIDEO_DRIVER_X11) && defined(GDK_WINDOWING_X11)
if(noGui == 0)
{
while (gtk_events_pending())