From b8aaccd7a122a3bf61436c97359a568b3a3cfe2f Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 24 Oct 2016 23:58:20 +0200 Subject: [PATCH] Attempt to repair background pausing on Linux --- BBGE/BBGECompileConfig.h | 1 - BBGE/Core.cpp | 5 ++--- BBGE/FmodOpenALBridge.cpp | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/BBGE/BBGECompileConfig.h b/BBGE/BBGECompileConfig.h index ba8f915..3bd88fc 100644 --- a/BBGE/BBGECompileConfig.h +++ b/BBGE/BBGECompileConfig.h @@ -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 diff --git a/BBGE/Core.cpp b/BBGE/Core.cpp index ceb0571..bf7c8bc 100644 --- a/BBGE/Core.cpp +++ b/BBGE/Core.cpp @@ -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)) { diff --git a/BBGE/FmodOpenALBridge.cpp b/BBGE/FmodOpenALBridge.cpp index 1ff4398..6bcfd5d 100644 --- a/BBGE/FmodOpenALBridge.cpp +++ b/BBGE/FmodOpenALBridge.cpp @@ -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