mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-26 02:07:26 +00:00
Attempt to repair background pausing on Linux
This commit is contained in:
parent
a3d5d63eed
commit
b8aaccd7a1
3 changed files with 3 additions and 5 deletions
|
@ -3,7 +3,6 @@
|
|||
|
||||
#ifndef BBGE_SKIP_CONFIG_HEADERS
|
||||
|
||||
#define BBGE_BUILD_SDL 1
|
||||
#define BBGE_BUILD_FRAMEBUFFER 1
|
||||
#define BBGE_BUILD_SHADERS 1
|
||||
#define BBGE_BUILD_OPENGL 1
|
||||
|
|
|
@ -1283,8 +1283,7 @@ void Core::run(float runTime)
|
|||
int frames = 0;
|
||||
float real_dt = 0;
|
||||
|
||||
|
||||
#if (!defined(_DEBUG) || defined(BBGE_BUILD_UNIX)) && defined(BBGE_BUILD_SDL)
|
||||
#if !defined(_DEBUG)
|
||||
bool wasInactive = false;
|
||||
#endif
|
||||
|
||||
|
@ -1327,7 +1326,7 @@ void Core::run(float runTime)
|
|||
|
||||
}
|
||||
|
||||
#if !defined(_DEBUG) && defined(BBGE_BUILD_SDL)
|
||||
#if !defined(_DEBUG)
|
||||
|
||||
if (lib_graphics && (wasInactive || !settings.runInBackground))
|
||||
{
|
||||
|
|
|
@ -445,7 +445,7 @@ double OggDecoder::position()
|
|||
return (double)samples_played / (double)freq;
|
||||
}
|
||||
|
||||
#if (defined(BBGE_BUILD_SDL) && (SDL_BYTEORDER == SDL_BIG_ENDIAN))
|
||||
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
|
||||
#define BBGE_BIGENDIAN 1
|
||||
#else
|
||||
#define BBGE_BIGENDIAN 0
|
||||
|
|
Loading…
Reference in a new issue