mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-08-15 11:27:35 +00:00
[Patch by Mike Sliczniak]
I was testing some other SS patches and I noticed that when I ran an X11 build of SS there were not all the video modes I expected in the the control strip. Mac OS X 10.5 changed the form of the DISPLAY environment variable. The reason for this is that the DISPLAY variable looks like this in Leopard: /tmp/launch-XXXXXX/:0 The Xs are like in mktemp.
This commit is contained in:
@@ -1613,6 +1613,7 @@ bool VideoInit(bool classic)
|
||||
|
||||
// Check if X server runs on local machine
|
||||
local_X11 = (strncmp(XDisplayName(x_display_name), ":", 1) == 0)
|
||||
|| (strncmp(XDisplayName(x_display_name), "/", 1) == 0)
|
||||
|| (strncmp(XDisplayName(x_display_name), "unix:", 5) == 0);
|
||||
|
||||
// Init keycode translation
|
||||
|
@@ -1372,6 +1372,7 @@ bool VideoInit(void)
|
||||
|
||||
// Check if X server runs on local machine
|
||||
local_X11 = (strncmp(XDisplayName(x_display_name), ":", 1) == 0)
|
||||
|| (strncmp(XDisplayName(x_display_name), "/", 1) == 0)
|
||||
|| (strncmp(XDisplayName(x_display_name), "unix:", 5) == 0);
|
||||
|
||||
// Init keycode translation
|
||||
|
Reference in New Issue
Block a user