diff --git a/SakuraVNE/src/Application.cpp b/SakuraVNE/src/Application.cpp index 56d08eb..3d1144b 100644 --- a/SakuraVNE/src/Application.cpp +++ b/SakuraVNE/src/Application.cpp @@ -26,14 +26,8 @@ bool Application::Init() { return false; } -#ifdef SDL_HINT_IME_SHOW_UI - SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); -#endif - - // TODO: add the resizable flag and update the window size with the event system - // SDL_WindowFlags windowFlags = (SDL_WindowFlags)(SDL_WINDOW_RESIZABLE); - SDL_WindowFlags flags; - m_Window = SDL_CreateWindow(GetWindowData().title, GetWindowData().width, GetWindowData().height, flags); + SDL_WindowFlags windowFlags = (SDL_WindowFlags)(SDL_WINDOW_RESIZABLE); + m_Window = SDL_CreateWindow(GetWindowData().title, GetWindowData().width, GetWindowData().height, windowFlags); if (!m_Window) { LOG_ERROR("SDL window could not be created! {0}", SDL_GetError()); @@ -68,7 +62,6 @@ bool Application::Init() { ImGuiIO &io = ImGui::GetIO(); (void)io; io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; - // io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; ImGui::StyleColorsDark(); @@ -79,7 +72,7 @@ bool Application::Init() { } void Application::Run() { - bool demoWindowShow = true; + bool demoWindowShow = false; bool showOtherWindow = false; ImVec4 clearColor = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); @@ -160,8 +153,6 @@ void Application::Shutdown() { SDL_DestroyRenderer(m_Renderer); - // SDL_FreeSurface(m_Surface); - // Destroy window SDL_DestroyWindow(m_Window);