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:
parent
ed131da115
commit
6608fa2fdb
@ -6,6 +6,7 @@
|
||||
|
||||
extern SDL_Window *g_window;
|
||||
extern SDL_Renderer *g_renderer;
|
||||
extern bool g_bFullScreen;
|
||||
|
||||
struct POINT
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user