mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Remove hinstance obsolete stuff
This commit is contained in:
parent
67831eab7c
commit
fe253c08a3
@ -412,7 +412,7 @@ bool InitFail(char *msg, bool bDirectX)
|
||||
|
||||
// Initialisation de l'application.
|
||||
|
||||
static bool DoInit(HINSTANCE hInstance, LPSTR lpCmdLine, int nCmdShow)
|
||||
static bool DoInit(LPSTR lpCmdLine, int nCmdShow)
|
||||
{
|
||||
POINT totalDim, iconDim;
|
||||
RECT rcRect;
|
||||
@ -420,8 +420,6 @@ static bool DoInit(HINSTANCE hInstance, LPSTR lpCmdLine, int nCmdShow)
|
||||
|
||||
bOK = ReadConfig(lpCmdLine); // lit le fichier config.def
|
||||
|
||||
InitHInstance(hInstance);
|
||||
|
||||
SDL_SetMainReady ();
|
||||
auto res = SDL_Init (SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER);
|
||||
if (res < 0)
|
||||
@ -628,7 +626,7 @@ static bool DoInit(HINSTANCE hInstance, LPSTR lpCmdLine, int nCmdShow)
|
||||
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
||||
LPSTR lpCmdLine, int nCmdShow)
|
||||
{
|
||||
if (!DoInit(hInstance, lpCmdLine, nCmdShow))
|
||||
if (!DoInit(lpCmdLine, nCmdShow))
|
||||
return false;
|
||||
|
||||
SDL_TimerID updateTimer = SDL_AddTimer (g_timerInterval, [] (Uint32 interval, void *param) -> Uint32
|
||||
|
9
misc.cpp
9
misc.cpp
@ -9,19 +9,10 @@
|
||||
|
||||
// Variables globales
|
||||
|
||||
HINSTANCE g_hInstance;
|
||||
extern bool g_bFullScreen; // false si mode de test
|
||||
extern int g_mouseType;
|
||||
|
||||
|
||||
// Initialise HInstance.
|
||||
|
||||
void InitHInstance(HINSTANCE hInstance)
|
||||
{
|
||||
g_hInstance = hInstance;
|
||||
}
|
||||
|
||||
|
||||
// Affiche un message de debug.
|
||||
|
||||
void OutputDebug(char *pMessage)
|
||||
|
Loading…
x
Reference in New Issue
Block a user