removed flags and hints that are no longer needed
This commit is contained in:
@@ -26,14 +26,8 @@ bool Application::Init() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SDL_HINT_IME_SHOW_UI
|
SDL_WindowFlags windowFlags = (SDL_WindowFlags)(SDL_WINDOW_RESIZABLE);
|
||||||
SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1");
|
m_Window = SDL_CreateWindow(GetWindowData().title, GetWindowData().width, GetWindowData().height, windowFlags);
|
||||||
#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);
|
|
||||||
|
|
||||||
if (!m_Window) {
|
if (!m_Window) {
|
||||||
LOG_ERROR("SDL window could not be created! {0}", SDL_GetError());
|
LOG_ERROR("SDL window could not be created! {0}", SDL_GetError());
|
||||||
@@ -68,7 +62,6 @@ bool Application::Init() {
|
|||||||
ImGuiIO &io = ImGui::GetIO();
|
ImGuiIO &io = ImGui::GetIO();
|
||||||
(void)io;
|
(void)io;
|
||||||
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
|
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
|
||||||
// io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;
|
|
||||||
|
|
||||||
ImGui::StyleColorsDark();
|
ImGui::StyleColorsDark();
|
||||||
|
|
||||||
@@ -79,7 +72,7 @@ bool Application::Init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Application::Run() {
|
void Application::Run() {
|
||||||
bool demoWindowShow = true;
|
bool demoWindowShow = false;
|
||||||
bool showOtherWindow = false;
|
bool showOtherWindow = false;
|
||||||
ImVec4 clearColor = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
|
ImVec4 clearColor = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
|
||||||
|
|
||||||
@@ -160,8 +153,6 @@ void Application::Shutdown() {
|
|||||||
|
|
||||||
SDL_DestroyRenderer(m_Renderer);
|
SDL_DestroyRenderer(m_Renderer);
|
||||||
|
|
||||||
// SDL_FreeSurface(m_Surface);
|
|
||||||
|
|
||||||
// Destroy window
|
// Destroy window
|
||||||
SDL_DestroyWindow(m_Window);
|
SDL_DestroyWindow(m_Window);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user