1
0
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:
Mathieu Schroeter 2017-02-09 18:34:40 +01:00
parent 67831eab7c
commit fe253c08a3
3 changed files with 2 additions and 14 deletions

View File

@ -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

View File

@ -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)

1
misc.h
View File

@ -5,7 +5,6 @@
#include <Windows.h>
extern void InitHInstance(HINSTANCE hInstance);
extern void OutputDebug(char *pMessage);
extern POINT ConvLongToPos(LPARAM lParam);