• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)


Commit MetaInfo

修订版a079616e5796d1300945766df2776605a1dbd771 (tree)
时间2022-09-05 05:11:19
作者Benjamin Berkels <torr.samaho@quan...>
CommiterBenjamin Berkels

Log Message

Fixed: SDL_Init must be called before gtk_init_check (patch from icculus, fixes 4023).

更改概述

差异

diff -r ead9858fb912 -r a079616e5796 src/sdl/i_main.cpp
--- a/src/sdl/i_main.cpp Sun Sep 04 12:41:07 2022 -0400
+++ b/src/sdl/i_main.cpp Sun Sep 04 22:11:19 2022 +0200
@@ -263,9 +263,10 @@
263263 // Note that the LANG environment variable is overridden by LC_*
264264 setenv ("LC_NUMERIC", "C", 1);
265265
266-#ifndef NO_GTK
267- GtkAvailable = gtk_init_check (&argc, &argv);
268-#endif
266+// [BB] Patch from icculus for SDL 1.2 compatibility.
267+// #ifndef NO_GTK
268+// GtkAvailable = gtk_init_check (&argc, &argv);
269+// #endif
269270
270271 setlocale (LC_ALL, "C");
271272
@@ -302,6 +303,14 @@
302303
303304 atterm (SDL_Quit);
304305
306+ // [BB] Patch from icculus for SDL 1.2 compatibility.
307+ // Make sure gtk_init_check happens _after_ SDL_Init, so SDL will call
308+ // XInitThreads() on X11, then GTK+ will talk to Xlib without leaving
309+ // mutexes uncreated that the system is going to expect to be initialized.
310+#ifndef NO_GTK
311+ GtkAvailable = gtk_init_check (&argc, &argv);
312+#endif
313+
305314 {
306315 char viddriver[80];
307316