shithub: cstory

Download patch

ref: 17ae81823ceb107b5e84769971fc8002a05dc810
parent: 34986ff049bd127b2ef10152e116f258a02bda1f
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Aug 28 20:00:17 EDT 2019

Fixes

--- a/src/Generic.h
+++ b/src/Generic.h
@@ -16,4 +16,7 @@
 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);
--- a/src/Main.cpp
+++ b/src/Main.cpp
@@ -31,9 +31,10 @@
 
 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 @@
 					}
 
 					StartDirectDraw(2, colourDepth);
+					bFullscreen = TRUE;
 
 					SDL_ShowCursor(0);
 				}
--- 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();