1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-05 22:50:23 +00:00

Temporaraily commented out Linux version of _SCREENICON function due to compile errors

This commit is contained in:
Luke Ceddia 2015-08-09 21:33:22 +10:00
parent 7fb1db97f6
commit a25cb9a846

View file

@ -26,11 +26,13 @@ int32 func_screenicon () {
while (!window_exists){Sleep(100);}
extern int32 screen_hide;
if (screen_hide) {error(5); return 0;}
#ifdef QB64_WINDOWS
#include <windows.h>
#ifdef QB64_WINDOWS
#include <windows.h>
extern HWND window_handle;
return -IsIconic(window_handle);
#else
#else
/*
Linux code not compiling for now
#include <X11/X.h>
#include <X11/Xlib.h>
extern Display *X11_display;
@ -41,6 +43,7 @@ int32 func_screenicon () {
XGetWindowAttributes(X11_display, X11_window, &attribs);
if (attribs.map_state == IsUnmapped) return -1;
return 0;
#endif
#endif */
return 0; //if we get here and haven't exited already, we failed somewhere along the way.
#endif
}