mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-05 21:40:25 +00:00
Temporaraily commented out Linux version of _SCREENICON function due to compile errors
This commit is contained in:
parent
7fb1db97f6
commit
a25cb9a846
|
@ -23,24 +23,27 @@ int32 func__controlchr () {
|
||||||
}
|
}
|
||||||
|
|
||||||
int32 func_screenicon () {
|
int32 func_screenicon () {
|
||||||
while (!window_exists){Sleep(100);}
|
while (!window_exists){Sleep(100);}
|
||||||
extern int32 screen_hide;
|
extern int32 screen_hide;
|
||||||
if (screen_hide) {error(5); return 0;}
|
if (screen_hide) {error(5); return 0;}
|
||||||
#ifdef QB64_WINDOWS
|
#ifdef QB64_WINDOWS
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
extern HWND window_handle;
|
extern HWND window_handle;
|
||||||
return -IsIconic(window_handle);
|
return -IsIconic(window_handle);
|
||||||
#else
|
#else
|
||||||
#include <X11/X.h>
|
/*
|
||||||
#include <X11/Xlib.h>
|
Linux code not compiling for now
|
||||||
extern Display *X11_display;
|
#include <X11/X.h>
|
||||||
extern Window X11_window;
|
#include <X11/Xlib.h>
|
||||||
extern int32 screen_hide;
|
extern Display *X11_display;
|
||||||
XWindowAttributes attribs;
|
extern Window X11_window;
|
||||||
while (!(X11_display && X11_window));
|
extern int32 screen_hide;
|
||||||
XGetWindowAttributes(X11_display, X11_window, &attribs);
|
XWindowAttributes attribs;
|
||||||
if (attribs.map_state == IsUnmapped) return -1;
|
while (!(X11_display && X11_window));
|
||||||
return 0;
|
XGetWindowAttributes(X11_display, X11_window, &attribs);
|
||||||
#endif
|
if (attribs.map_state == IsUnmapped) return -1;
|
||||||
return 0; //if we get here and haven't exited already, we failed somewhere along the way.
|
return 0;
|
||||||
}
|
#endif */
|
||||||
|
return 0; //if we get here and haven't exited already, we failed somewhere along the way.
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue