From a25cb9a846bb28027e373d5635bcb1089f490394 Mon Sep 17 00:00:00 2001 From: Luke Ceddia Date: Sun, 9 Aug 2015 21:33:22 +1000 Subject: [PATCH] Temporaraily commented out Linux version of _SCREENICON function due to compile errors --- .../user_mods/src/Steve Stuff/screeninfo.cpp | 45 ++++++++++--------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/internal/c/parts/user_mods/src/Steve Stuff/screeninfo.cpp b/internal/c/parts/user_mods/src/Steve Stuff/screeninfo.cpp index 2226418e1..01837ae27 100644 --- a/internal/c/parts/user_mods/src/Steve Stuff/screeninfo.cpp +++ b/internal/c/parts/user_mods/src/Steve Stuff/screeninfo.cpp @@ -23,24 +23,27 @@ int32 func__controlchr () { } int32 func_screenicon () { - while (!window_exists){Sleep(100);} - extern int32 screen_hide; - if (screen_hide) {error(5); return 0;} - #ifdef QB64_WINDOWS - #include - extern HWND window_handle; - return -IsIconic(window_handle); - #else - #include - #include - extern Display *X11_display; - extern Window X11_window; - extern int32 screen_hide; - XWindowAttributes attribs; - while (!(X11_display && X11_window)); - XGetWindowAttributes(X11_display, X11_window, &attribs); - if (attribs.map_state == IsUnmapped) return -1; - return 0; - #endif - return 0; //if we get here and haven't exited already, we failed somewhere along the way. -} \ No newline at end of file + while (!window_exists){Sleep(100);} + extern int32 screen_hide; + if (screen_hide) {error(5); return 0;} +#ifdef QB64_WINDOWS +#include + extern HWND window_handle; + return -IsIconic(window_handle); +#else + /* + Linux code not compiling for now + #include + #include + extern Display *X11_display; + extern Window X11_window; + extern int32 screen_hide; + XWindowAttributes attribs; + while (!(X11_display && X11_window)); + XGetWindowAttributes(X11_display, X11_window, &attribs); + if (attribs.map_state == IsUnmapped) return -1; + return 0; + #endif */ + return 0; //if we get here and haven't exited already, we failed somewhere along the way. + #endif +}