Make focusState a static to main.c, instead of a global from frame.c
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7240 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
e16e034ec7
commit
a9b8a20aa5
|
@ -51,8 +51,6 @@ static const enum CURSOR_TYPE cursor_type =
|
|||
static CURSOR currentCursor = ~(CURSOR)0;
|
||||
static SDL_Cursor* aCursors[CURSOR_MAX];
|
||||
|
||||
FOCUS_STATE focusState = FOCUS_IN;
|
||||
|
||||
bool selfTest = false;
|
||||
|
||||
/************************************************************************************
|
||||
|
|
|
@ -69,12 +69,6 @@ extern bool selfTest;
|
|||
*/
|
||||
extern void frameShutDown(void);
|
||||
|
||||
typedef enum _focus_state
|
||||
{
|
||||
FOCUS_OUT, // Window does not have the focus
|
||||
FOCUS_IN, // Window has got the focus
|
||||
} FOCUS_STATE;
|
||||
|
||||
/*!
|
||||
* Set the framerate limit
|
||||
*
|
||||
|
|
|
@ -85,6 +85,11 @@
|
|||
# define DATADIR "data"
|
||||
#endif
|
||||
|
||||
typedef enum _focus_state
|
||||
{
|
||||
FOCUS_OUT, // Window does not have the focus
|
||||
FOCUS_IN, // Window has got the focus
|
||||
} FOCUS_STATE;
|
||||
|
||||
#if defined(WZ_OS_WIN)
|
||||
# define WZ_WRITEDIR "Warzone 2100 2.2"
|
||||
|
@ -119,7 +124,7 @@ char KeyMapPath[PATH_MAX];
|
|||
static GS_GAMEMODE gameStatus = GS_TITLE_SCREEN;
|
||||
// Status of the gameloop
|
||||
static int gameLoopStatus = 0;
|
||||
extern FOCUS_STATE focusState;
|
||||
static FOCUS_STATE focusState = FOCUS_IN;
|
||||
|
||||
extern void debug_callback_stderr( void**, const char * );
|
||||
extern void debug_callback_win32debug( void**, const char * );
|
||||
|
|
Loading…
Reference in New Issue