mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Remove useless mouse type code
This commit is contained in:
parent
a77b8bfcba
commit
8de7181458
@ -30,7 +30,6 @@ CDecor *g_pDecor = nullptr;
|
|||||||
bool g_bFullScreen = false; // false si mode de test
|
bool g_bFullScreen = false; // false si mode de test
|
||||||
Sint32 g_speedRate = 1;
|
Sint32 g_speedRate = 1;
|
||||||
Sint32 g_timerInterval = 50; // inverval = 50ms
|
Sint32 g_timerInterval = 50; // inverval = 50ms
|
||||||
Sint32 g_mouseType = MOUSETYPEGRA;
|
|
||||||
bool g_bTermInit = false; // initialisation en cours
|
bool g_bTermInit = false; // initialisation en cours
|
||||||
Uint32 g_lastPhase = 999;
|
Uint32 g_lastPhase = 999;
|
||||||
int g_rendererType = 0;
|
int g_rendererType = 0;
|
||||||
@ -104,16 +103,6 @@ static bool ReadConfig ()
|
|||||||
g_bFullScreen = 1;
|
g_bFullScreen = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
pText = strstr (buffer, "MouseType=");
|
|
||||||
if (pText != nullptr)
|
|
||||||
{
|
|
||||||
g_mouseType = GetNum (pText + 10);
|
|
||||||
if (g_mouseType < 1)
|
|
||||||
g_mouseType = 1;
|
|
||||||
if (g_mouseType > 9)
|
|
||||||
g_mouseType = 9;
|
|
||||||
}
|
|
||||||
|
|
||||||
pText = strstr (buffer, "Renderer=");
|
pText = strstr (buffer, "Renderer=");
|
||||||
if (pText)
|
if (pText)
|
||||||
{
|
{
|
||||||
@ -457,7 +446,7 @@ static bool DoInit (Sint32 argc, char *argv[])
|
|||||||
|
|
||||||
totalDim.x = LXIMAGE;
|
totalDim.x = LXIMAGE;
|
||||||
totalDim.y = LYIMAGE;
|
totalDim.y = LYIMAGE;
|
||||||
if (!g_pPixmap->Create (totalDim, g_mouseType))
|
if (!g_pPixmap->Create (totalDim))
|
||||||
return InitFail ("Create pixmap", true);
|
return InitFail ("Create pixmap", true);
|
||||||
|
|
||||||
OutputDebug ("Image: init\n");
|
OutputDebug ("Image: init\n");
|
||||||
@ -602,7 +591,6 @@ static bool DoInit (Sint32 argc, char *argv[])
|
|||||||
|
|
||||||
g_pEvent->Create (g_pPixmap, g_pDecor, g_pSound, g_pMovie);
|
g_pEvent->Create (g_pPixmap, g_pDecor, g_pSound, g_pMovie);
|
||||||
g_pEvent->SetFullScreen (g_bFullScreen);
|
g_pEvent->SetFullScreen (g_bFullScreen);
|
||||||
g_pEvent->SetMouseType (g_mouseType);
|
|
||||||
g_pEvent->ChangePhase ( WM_PHASE_INTRO1 );
|
g_pEvent->ChangePhase ( WM_PHASE_INTRO1 );
|
||||||
|
|
||||||
g_bTermInit = true; // initialisation termin�e
|
g_bTermInit = true; // initialisation termin�e
|
||||||
|
@ -1507,7 +1507,6 @@ CEvent::CEvent()
|
|||||||
|
|
||||||
m_bFullScreen = true;
|
m_bFullScreen = true;
|
||||||
m_WindowScale = 1;
|
m_WindowScale = 1;
|
||||||
m_mouseType = MOUSETYPEGRA;
|
|
||||||
m_exercice = 0;
|
m_exercice = 0;
|
||||||
m_mission = 0;
|
m_mission = 0;
|
||||||
m_private = 0;
|
m_private = 0;
|
||||||
@ -1675,13 +1674,6 @@ Uint8 CEvent::GetWindowScale ()
|
|||||||
return m_WindowScale;
|
return m_WindowScale;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialise le type de souris.
|
|
||||||
|
|
||||||
void CEvent::SetMouseType (Sint32 mouseType)
|
|
||||||
{
|
|
||||||
m_mouseType = mouseType;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Crée le gestionnaire d'événements.
|
// Crée le gestionnaire d'événements.
|
||||||
|
|
||||||
void CEvent::Create (CPixmap *pPixmap, CDecor *pDecor,
|
void CEvent::Create (CPixmap *pPixmap, CDecor *pDecor,
|
||||||
|
@ -72,7 +72,6 @@ public:
|
|||||||
void Create (CPixmap *pPixmap, CDecor *pDecor, CSound *pSound,
|
void Create (CPixmap *pPixmap, CDecor *pDecor, CSound *pSound,
|
||||||
CMovie *pMovie);
|
CMovie *pMovie);
|
||||||
void SetFullScreen (bool bFullScreen);
|
void SetFullScreen (bool bFullScreen);
|
||||||
void SetMouseType (Sint32 mouseType);
|
|
||||||
Sint32 GetWorld();
|
Sint32 GetWorld();
|
||||||
Sint32 GetPhysicalWorld();
|
Sint32 GetPhysicalWorld();
|
||||||
Sint32 GetImageWorld();
|
Sint32 GetImageWorld();
|
||||||
@ -174,7 +173,6 @@ protected:
|
|||||||
bool m_bAccessBuild;
|
bool m_bAccessBuild;
|
||||||
bool m_bFullScreen;
|
bool m_bFullScreen;
|
||||||
Uint8 m_WindowScale;
|
Uint8 m_WindowScale;
|
||||||
Sint32 m_mouseType;
|
|
||||||
CPixmap *m_pPixmap;
|
CPixmap *m_pPixmap;
|
||||||
CDecor *m_pDecor;
|
CDecor *m_pDecor;
|
||||||
CSound *m_pSound;
|
CSound *m_pSound;
|
||||||
|
@ -28,7 +28,6 @@ CPixmap::CPixmap()
|
|||||||
{
|
{
|
||||||
Sint32 i;
|
Sint32 i;
|
||||||
|
|
||||||
m_mouseType = MOUSETYPEGRA;
|
|
||||||
m_bDebug = true;
|
m_bDebug = true;
|
||||||
m_bPalette = true;
|
m_bPalette = true;
|
||||||
|
|
||||||
@ -66,9 +65,8 @@ CPixmap::~CPixmap()
|
|||||||
// Cr�e l'objet DirectDraw principal.
|
// Cr�e l'objet DirectDraw principal.
|
||||||
// Retourne false en cas d'erreur.
|
// Retourne false en cas d'erreur.
|
||||||
|
|
||||||
bool CPixmap::Create (POINT dim, Sint32 mouseType)
|
bool CPixmap::Create (POINT dim)
|
||||||
{
|
{
|
||||||
m_mouseType = mouseType;
|
|
||||||
m_dim = dim;
|
m_dim = dim;
|
||||||
|
|
||||||
m_clipRect.left = 0;
|
m_clipRect.left = 0;
|
||||||
|
@ -29,7 +29,7 @@ public:
|
|||||||
CPixmap();
|
CPixmap();
|
||||||
~CPixmap();
|
~CPixmap();
|
||||||
|
|
||||||
bool Create (POINT dim, Sint32 mouseType);
|
bool Create (POINT dim);
|
||||||
void Fill (RECT rect, COLORREF color);
|
void Fill (RECT rect, COLORREF color);
|
||||||
|
|
||||||
bool ReloadTargetTextures ();
|
bool ReloadTargetTextures ();
|
||||||
@ -71,7 +71,6 @@ protected:
|
|||||||
SDL_Rect GetCursorRect (Sint32 sprite);
|
SDL_Rect GetCursorRect (Sint32 sprite);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Sint32 m_mouseType;
|
|
||||||
bool m_bDebug;
|
bool m_bDebug;
|
||||||
bool m_bPalette;
|
bool m_bPalette;
|
||||||
POINT m_dim; // dimensions totales
|
POINT m_dim; // dimensions totales
|
||||||
|
Loading…
x
Reference in New Issue
Block a user