mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 15:27:46 +00:00
display: Fix X11 crash when DISPLAY unset.
This commit is contained in:
parent
0a430fee9a
commit
8f9fc78632
@ -272,6 +272,10 @@ ws_init(const char *crtname, /* crt type name */
|
||||
xpixels = xp; /* save screen size */
|
||||
ypixels = yp;
|
||||
|
||||
if (getenv ("DISPLAY") == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
XtToolkitInitialize();
|
||||
app_context = XtCreateApplicationContext();
|
||||
argc = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user