mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-04 04:50:22 +00:00
_SCREENIMAGE on Linux/OSX returns a blank image instead of an error
This commit is contained in:
parent
cfee6072bb
commit
3a5364e111
|
@ -23368,7 +23368,6 @@ return -1;
|
||||||
|
|
||||||
#ifdef DEPENDENCY_SCREENIMAGE
|
#ifdef DEPENDENCY_SCREENIMAGE
|
||||||
int32 func__screenimage(int32 x1,int32 y1,int32 x2,int32 y2,int32 passed){
|
int32 func__screenimage(int32 x1,int32 y1,int32 x2,int32 y2,int32 passed){
|
||||||
if (cloud_app) return func__newimage(1024,768,32,1);
|
|
||||||
|
|
||||||
#ifdef QB64_WINDOWS
|
#ifdef QB64_WINDOWS
|
||||||
|
|
||||||
|
@ -23451,14 +23450,9 @@ return -1;
|
||||||
|
|
||||||
ReleaseDC(NULL,hdc);
|
ReleaseDC(NULL,hdc);
|
||||||
return i;
|
return i;
|
||||||
|
#else
|
||||||
|
return func__newimage(func_screenwidth(), func_screenheight(), 32, 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef QB64_MACOSX
|
|
||||||
system("screencapture -x -tbmp /tmp/qb64screencapture.bmp\0");
|
|
||||||
return func__loadimage(qbs_new_txt("/tmp/qb64screencapture.bmp"),32,1);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
#endif //DEPENDENCY_SCREENIMAGE
|
#endif //DEPENDENCY_SCREENIMAGE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue