From 02249ae6b94ceb5ec67041489d3d9e7991ea5bed Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 15 Mar 2022 18:02:19 +0100 Subject: [PATCH] (RPi) Fixed two compiler errors. --- es-core/src/utils/PlatformUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-core/src/utils/PlatformUtil.cpp b/es-core/src/utils/PlatformUtil.cpp index 2fdced2fe..f0be88faf 100644 --- a/es-core/src/utils/PlatformUtil.cpp +++ b/es-core/src/utils/PlatformUtil.cpp @@ -12,10 +12,10 @@ #include "Window.h" #if defined(_WIN64) #include "utils/StringUtil.h" -#include #include #endif +#include #include #if !defined(_WIN64) @@ -109,7 +109,7 @@ namespace Utils // Hack to avoid that the application window occasionally loses focus when returning // from a game, which only seems to happen on Raspberry Pi OS 10. SDL_Delay(50); - SDL_SetWindowInputFocus(Renderer::getSDLWindow()); + SDL_SetWindowInputFocus(Renderer::getInstance()->getSDLWindow()); #endif // We need to shift the return value as it contains some flags (which we don't need).