Updated textmode fix to always run the GUI under Windows

This commit is contained in:
LW 2017-08-26 16:57:40 -07:00
commit 8e371a263d

View file

@ -274,6 +274,10 @@ int main(int argc, char* argv[]) {
pthread_mutex_init(&print_lock, NULL); pthread_mutex_init(&print_lock, NULL);
#ifdef HAVE_GUI #ifdef HAVE_GUI
#ifdef _WIN32
InitGraphics(argc, argv, script_cmds_file, usb_present);
MainGraphics();
#else
char* display = getenv("DISPLAY"); char* display = getenv("DISPLAY");
if (display && strlen(display) > 1) if (display && strlen(display) > 1)
@ -285,6 +289,7 @@ int main(int argc, char* argv[]) {
{ {
main_loop(script_cmds_file, usb_present); main_loop(script_cmds_file, usb_present);
} }
#endif
#else #else
main_loop(script_cmds_file, usb_present); main_loop(script_cmds_file, usb_present);
#endif #endif