From 17ae81823ceb107b5e84769971fc8002a05dc810 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Thu, 29 Aug 2019 00:00:17 +0100 Subject: [PATCH] Fixes --- src/Generic.h | 3 +++ src/Main.cpp | 4 +++- src/Main.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Generic.h b/src/Generic.h index 4eff39b0..19261659 100644 --- a/src/Generic.h +++ b/src/Generic.h @@ -16,4 +16,7 @@ long GetFileSizeLong(const char *path); BOOL PrintBitmapError(char *string, int value); #endif BOOL IsShiftJIS(unsigned char c); +BOOL CenterWindow(HWND hWnd); +BOOL LoadWindowRect(HWND hWnd, char *window_rect_filename, BOOL unknown); +BOOL SaveWindowRect(HWND hWnd, const char *filename); BOOL IsEnableBitmap(const char *path); diff --git a/src/Main.cpp b/src/Main.cpp index c396341d..89f4dcc4 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -31,9 +31,10 @@ char gDataPath[PATH_LENGTH]; int gJoystickButtonTable[8]; -HWND ghWnd; // Placeholder until we restore the WinAPI code +HWND ghWnd; BOOL gbUseJoystick = FALSE; BOOL bFps = FALSE; +BOOL bFullscreen; BOOL bActive = TRUE; @@ -298,6 +299,7 @@ int main(int argc, char *argv[]) } StartDirectDraw(2, colourDepth); + bFullscreen = TRUE; SDL_ShowCursor(0); } diff --git a/src/Main.h b/src/Main.h index 51172956..c12aafdc 100644 --- a/src/Main.h +++ b/src/Main.h @@ -3,6 +3,7 @@ #include "WindowsWrapper.h" extern HWND ghWnd; +extern BOOL bFullscreen; void PutFramePerSecound(); int GetFramePerSecound();