From 2bc146e1e698f3895f87e838c75e531ddfaf1ff0 Mon Sep 17 00:00:00 2001 From: Naomino <66085784+Naomi-Kali@users.noreply.github.com> Date: Sun, 7 Jul 2024 23:37:21 +0200 Subject: [PATCH] SDL window Allowing to Hide Window --- src/sdl_window.cpp | 2 +- src/sdl_window.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdl_window.cpp b/src/sdl_window.cpp index 419d7440a..31fd04ecf 100644 --- a/src/sdl_window.cpp +++ b/src/sdl_window.cpp @@ -45,7 +45,7 @@ WindowSDL::WindowSDL(s32 width_, s32 height_, Input::GameController* controller_ } SDL_SetWindowFullscreen(window, Config::isFullscreenMode()); - CursorVisibility(Config::isHideCursor()); + SetCursorVisibility(Config::isHideCursor()); #if defined(SDL_PLATFORM_WIN32) window_info.type = WindowSystemType::Windows; diff --git a/src/sdl_window.h b/src/sdl_window.h index e0995218c..1fbe93d3c 100644 --- a/src/sdl_window.h +++ b/src/sdl_window.h @@ -63,7 +63,7 @@ public: private: void onResize(); void onKeyPress(const SDL_Event* event); - void CursorVisibility(bool cursor_visibility); + void SetCursorVisibility(bool cursor_visibility); private: s32 width;