From ec5d5af43e0e6901af817dc7fcd497649c8211db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hatvani=20Tam=C3=A1s?= Date: Wed, 15 Apr 2026 10:15:08 +0200 Subject: [PATCH] added member var for the window flags to the window class --- SakuraCore/src/Window.cpp | 5 +++-- SakuraCore/src/Window.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SakuraCore/src/Window.cpp b/SakuraCore/src/Window.cpp index b036c98..0c93ff6 100644 --- a/SakuraCore/src/Window.cpp +++ b/SakuraCore/src/Window.cpp @@ -1,12 +1,11 @@ #include "Window.h" - -#include "Application.h" #include "InputEvents.h" #include "Log.h" #include "SDL3/SDL_events.h" #include "SDL3/SDL_mouse.h" #include "SDL3/SDL_video.h" #include "WindowEvents.h" +#include namespace SakuraVNE { Window::Window(const WindowData &data) : m_Data(data) {} @@ -19,6 +18,8 @@ bool Window::Create(std::span flags) { windowFlags |= flag; } + *m_Flags = windowFlags; + m_Handle = SDL_CreateWindow(m_Data.title.c_str(), m_Data.width, m_Data.height, windowFlags); if (!m_Handle) { diff --git a/SakuraCore/src/Window.h b/SakuraCore/src/Window.h index 37c57d5..e836847 100644 --- a/SakuraCore/src/Window.h +++ b/SakuraCore/src/Window.h @@ -47,6 +47,7 @@ public: private: WindowData m_Data; SDL_Window *m_Handle = nullptr; + SDL_WindowFlags *m_Flags = nullptr; float *m_MouseXPos = nullptr; float *m_MouseYPos = nullptr; };