From 805c7f5bb2a114b59c49f9bebb38d3bf48ccc2d7 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Tue, 21 Jan 2020 10:36:13 +0800 Subject: [PATCH] define __mg_switch_away and cleanup --- src/newgal/video.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/newgal/video.c b/src/newgal/video.c index 09f99f87..9eb64d4c 100644 --- a/src/newgal/video.c +++ b/src/newgal/video.c @@ -1401,6 +1401,8 @@ GAL_Surface *gal_SlaveVideoInit(const char* driver_name, const char* mode, int d return surface; } +BOOL __mg_switch_away; + /* Since 4.0.0; activate/deactivate video device, for switching virtual terminals */ int GAL_ResumeVideo(void) { @@ -1414,9 +1416,7 @@ int GAL_ResumeVideo(void) } #endif -#ifndef _MGRM_THREADS __mg_switch_away = FALSE; -#endif #ifdef _MGRM_PROCESSES UpdateTopmostLayer (NULL); @@ -1433,9 +1433,7 @@ int GAL_SuspendVideo(void) DisableClientsOutput (); #endif -#ifndef _MGRM_THREADS __mg_switch_away = TRUE; -#endif #ifdef _MGRM_PROCESSES if (mgIsServer) {