summaryrefslogtreecommitdiff
path: root/emulators/snes9x-gtk/files/patch-gtk-src-gtk__s9x.cpp
blob: 0397c8de9332cd2b619c079e75e3f0c1b67fdf74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/gtk_s9x.cpp.orig	2013-10-25 03:47:08.000000000 -0700
+++ src/gtk_s9x.cpp	2013-10-25 03:47:32.000000000 -0700
@@ -44,6 +44,7 @@
 
     g_thread_init (NULL);
     gdk_threads_init ();
+    gdk_threads_enter();
 
     gtk_init (&argc, &argv);
 
@@ -127,6 +128,8 @@
 
     gtk_main ();
 
+    gdk_threads_leave();
+    
     return 0;
 }