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:
processDeveloperShortcut(DeveloperShortcut::Replacements);
return true;
default:
// Don't filter the key event.
break;
}
}

View File

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

View File

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