From 2060a8ea3037a899c3dfadc9d16d5facf2a8d350 Mon Sep 17 00:00:00 2001 From: aperturesecurity Date: Tue, 25 Dec 2018 12:57:16 +0200 Subject: [PATCH] Removed cursor when game starts --- Source/gmenu.cpp | 4 +++- Stub/init.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/gmenu.cpp b/Source/gmenu.cpp index ed1903a3c..3b40dc9fb 100644 --- a/Source/gmenu.cpp +++ b/Source/gmenu.cpp @@ -596,7 +596,9 @@ void __fastcall gmenu_draw_menu_item(TMenuItem *pItem, int a2) MyPcxFRAME = 1; } - DrawArtWithMask(320 - (gdwLogoWidth / 2), -50, gdwLogoWidth, gdwLogoHeight, MyPcxFRAME, 250, pPcxLogoImage); + //DrawArtWithMask(320 - (gdwLogoWidth / 2), -50, gdwLogoWidth, gdwLogoHeight, MyPcxFRAME, 250, pPcxLogoImage); + CelDecodeOnly(64, 275, GameTitle, MyPcxFRAME, 640); + if (++diablogo_cel_frame == 29) { diff --git a/Stub/init.cpp b/Stub/init.cpp index ed8d48712..3e98d3e22 100644 --- a/Stub/init.cpp +++ b/Stub/init.cpp @@ -72,6 +72,7 @@ void __fastcall init_create_window(int nCmdShow) init_archives(); gmenu_init_menu(); SDL_Diablo_UI(); + SDL_ShowCursor(SDL_DISABLE); } LRESULT __stdcall MainWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)