|
Line 0
Link Here
|
|
|
1 |
--- fontforgeexe/startui.c.orig 2019-08-01 08:28:36 UTC |
| 2 |
+++ fontforgeexe/startui.c |
| 3 |
@@ -1099,10 +1099,6 @@ int fontforge_main( int argc, char **argv ) { |
| 4 |
CheckIsScript(argc,argv); /* Will run the script and exit if it is a script */ |
| 5 |
/* If there is no UI, there is always a script */ |
| 6 |
/* and we will never return from the above */ |
| 7 |
-#ifdef FONTFORGE_CAN_USE_GDK |
| 8 |
- gdk_init(&argc, &argv); |
| 9 |
- gdk_set_allowed_backends("win32,quartz,x11"); |
| 10 |
-#endif |
| 11 |
if ( load_prefs==NULL || |
| 12 |
(strcasecmp(load_prefs,"Always")!=0 && /* Already loaded */ |
| 13 |
strcasecmp(load_prefs,"Never")!=0 )) |
| 14 |
@@ -1185,7 +1181,10 @@ int fontforge_main( int argc, char **argv ) { |
| 15 |
} |
| 16 |
#endif |
| 17 |
} |
| 18 |
- |
| 19 |
+#ifdef FONTFORGE_CAN_USE_GDK |
| 20 |
+ gdk_init(&argc, &argv); |
| 21 |
+ gdk_set_allowed_backends("win32,quartz,x11"); |
| 22 |
+#endif |
| 23 |
ensureDotFontForgeIsSetup(); |
| 24 |
#if defined(__MINGW32__) && !defined(_NO_LIBCAIRO) |
| 25 |
//Load any custom fonts for the user interface |