fixed: uninitalized m_Flags in window made the application window not appear
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
#include <span>
|
#include <span>
|
||||||
|
|
||||||
namespace SakuraVNE {
|
namespace SakuraVNE {
|
||||||
Window::Window(const WindowData &data) : m_Data(data) {}
|
Window::Window(const WindowData &data) : m_Data(data), m_Flags(0) {}
|
||||||
Window::~Window() { Destroy(); }
|
Window::~Window() { Destroy(); }
|
||||||
|
|
||||||
bool Window::Create(const SDL_WindowFlags flags) {
|
bool Window::Create(const SDL_WindowFlags flags) {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
namespace SakuraVNE {
|
namespace SakuraVNE {
|
||||||
struct WindowData {
|
struct WindowData {
|
||||||
SDL_WindowFlags windowFlags;
|
SDL_WindowFlags windowFlags = 0;
|
||||||
std::string title = "Window Title";
|
std::string title = "Window Title";
|
||||||
int width = 1280;
|
int width = 1280;
|
||||||
int height = 720;
|
int height = 720;
|
||||||
|
|||||||
Reference in New Issue
Block a user