1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix initial value for the fullscreen

This commit is contained in:
Mathieu Schroeter 2017-03-03 23:11:14 +01:00
parent ed131da115
commit 6608fa2fdb
3 changed files with 5 additions and 6 deletions

View File

@ -6,6 +6,7 @@
extern SDL_Window *g_window;
extern SDL_Renderer *g_renderer;
extern bool g_bFullScreen;
struct POINT
{

View File

@ -1505,7 +1505,7 @@ CEvent::CEvent()
{
Sint32 i;
m_bFullScreen = true;
m_bFullScreen = g_bFullScreen;
m_WindowScale = 1;
m_exercice = 0;
m_mission = 0;
@ -1611,6 +1611,9 @@ POINT CEvent::GetMousePos()
void CEvent::SetFullScreen (bool bFullScreen)
{
if (bFullScreen == m_bFullScreen)
return;
int x, y;
SDL_GetMouseState (&x, &y);
x /= m_WindowScale;

View File

@ -17,11 +17,6 @@
#include "blupi.h"
#include "def.h"
// Variables globales
extern bool g_bFullScreen; // false si mode de test
// Affiche un message de debug.
void OutputDebug (const char *pMessage)