1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-02 03:50:36 +00:00

_SCREENIMAGE on Linux/OSX returns a blank image instead of an error

This commit is contained in:
Luke Ceddia 2018-01-21 22:24:16 +11:00
parent cfee6072bb
commit 3a5364e111

View file

@ -23368,7 +23368,6 @@ return -1;
#ifdef DEPENDENCY_SCREENIMAGE
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
@ -23451,14 +23450,9 @@ return -1;
ReleaseDC(NULL,hdc);
return i;
#else
return func__newimage(func_screenwidth(), func_screenheight(), 32, 1);
#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