mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
Disable non-implemented window fade in Linux
This commit is contained in:
parent
cedc539231
commit
14907ad305
1 changed files with 11 additions and 1 deletions
|
|
@ -52,6 +52,14 @@
|
|||
#define DEF_SCREEN_H (rgssVer == 1 ? 480 : 416)
|
||||
#define DEF_FRAMERATE (rgssVer == 1 ? 40 : 60)
|
||||
|
||||
#if defined _WIN32
|
||||
#define OS_W32
|
||||
#elif defined __APPLE__
|
||||
#define OS_OSX
|
||||
#else
|
||||
#define OS_LINUX
|
||||
#endif
|
||||
|
||||
struct PingPong
|
||||
{
|
||||
TEXFBO rt[2];
|
||||
|
|
@ -816,7 +824,9 @@ void Graphics::transition(int duration,
|
|||
simpleShader.setProg(prog);
|
||||
}
|
||||
|
||||
if (p->threadData->exiting) SDL_SetWindowOpacity(p->threadData->window, 1.0f - prog);
|
||||
#ifndef OS_LINUX
|
||||
if (p->threadData->exiting) SDL_SetWindowOpacity(p->threadData->window, 1.0f - prog);
|
||||
#endif
|
||||
|
||||
/* Draw the composed frame to a buffer first
|
||||
* (we need this because we're skipping PingPong) */
|
||||
|
|
|
|||
Loading…
Reference in a new issue