Fix build errors.

This commit is contained in:
Dario 2024-08-10 18:07:03 -03:00
parent 33fd9fd88d
commit df28e32ab5
3 changed files with 11 additions and 17 deletions

View File

@ -494,6 +494,9 @@ namespace RT64 {
case SDL_SCANCODE_F4: case SDL_SCANCODE_F4:
processDeveloperShortcut(DeveloperShortcut::Replacements); processDeveloperShortcut(DeveloperShortcut::Replacements);
return true; return true;
default:
// Don't filter the key event.
break;
} }
} }

View File

@ -23,16 +23,7 @@ namespace RT64 {
ApplicationWindow *ApplicationWindow::HookedApplicationWindow = nullptr; ApplicationWindow *ApplicationWindow::HookedApplicationWindow = nullptr;
ApplicationWindow::ApplicationWindow() { ApplicationWindow::ApplicationWindow() {
windowHandle = {}; // Empty.
sdlEventFilterUserdata = nullptr;
sdlEventFilterStored = false;
fullScreen = false;
lastMaximizedState = false;
# ifdef _WIN32
windowHook = nullptr;
windowMenu = nullptr;
# endif
usingSdl = false;
} }
ApplicationWindow::~ApplicationWindow() { ApplicationWindow::~ApplicationWindow() {

View File

@ -31,12 +31,12 @@ namespace RT64 {
# endif # endif
}; };
RenderWindow windowHandle; RenderWindow windowHandle = {};
Listener *listener; Listener *listener;
uint32_t refreshRate = 0; uint32_t refreshRate = 0;
bool fullScreen; bool fullScreen = false;
bool lastMaximizedState; bool lastMaximizedState = false;
bool usingSdl; bool usingSdl = false;
int32_t windowLeft = INT32_MAX; int32_t windowLeft = INT32_MAX;
int32_t windowTop = INT32_MAX; int32_t windowTop = INT32_MAX;
SDL_EventFilter sdlEventFilterStored = nullptr; SDL_EventFilter sdlEventFilterStored = nullptr;
@ -44,9 +44,9 @@ namespace RT64 {
bool sdlEventFilterInstalled = false; bool sdlEventFilterInstalled = false;
# ifdef _WIN32 # ifdef _WIN32
HHOOK windowHook; HHOOK windowHook = nullptr;
HMENU windowMenu; HMENU windowMenu = nullptr;
RECT lastWindowRect; RECT lastWindowRect = {};
# endif # endif
ApplicationWindow(); ApplicationWindow();