1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-08-08 07:09:52 +00:00

Attempt to repair background pausing on Linux

This commit is contained in:
fgenesis 2016-10-24 23:58:20 +02:00
parent a3d5d63eed
commit b8aaccd7a1
3 changed files with 3 additions and 5 deletions

View file

@ -3,7 +3,6 @@
#ifndef BBGE_SKIP_CONFIG_HEADERS #ifndef BBGE_SKIP_CONFIG_HEADERS
#define BBGE_BUILD_SDL 1
#define BBGE_BUILD_FRAMEBUFFER 1 #define BBGE_BUILD_FRAMEBUFFER 1
#define BBGE_BUILD_SHADERS 1 #define BBGE_BUILD_SHADERS 1
#define BBGE_BUILD_OPENGL 1 #define BBGE_BUILD_OPENGL 1

View file

@ -1283,8 +1283,7 @@ void Core::run(float runTime)
int frames = 0; int frames = 0;
float real_dt = 0; float real_dt = 0;
#if !defined(_DEBUG)
#if (!defined(_DEBUG) || defined(BBGE_BUILD_UNIX)) && defined(BBGE_BUILD_SDL)
bool wasInactive = false; bool wasInactive = false;
#endif #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)) if (lib_graphics && (wasInactive || !settings.runInBackground))
{ {

View file

@ -445,7 +445,7 @@ double OggDecoder::position()
return (double)samples_played / (double)freq; 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 #define BBGE_BIGENDIAN 1
#else #else
#define BBGE_BIGENDIAN 0 #define BBGE_BIGENDIAN 0