Move ImGui setup to common, and enable fullscreen UI in Qt
This commit is contained in:
@ -98,7 +98,7 @@ bool SDLHostInterface::SetFullscreen(bool enabled)
|
||||
int window_width, window_height;
|
||||
SDL_GetWindowSize(m_window, &window_width, &window_height);
|
||||
m_display->ResizeRenderWindow(window_width, window_height);
|
||||
OnPlatformWindowResized(window_width, window_height, GetDPIScaleFactor(m_window));
|
||||
OnHostDisplayResized(window_width, window_height, GetDPIScaleFactor(m_window));
|
||||
|
||||
m_fullscreen = enabled;
|
||||
return true;
|
||||
@ -289,7 +289,7 @@ void SDLHostInterface::HandleSDLEvent(const SDL_Event* event)
|
||||
if (event->window.event == SDL_WINDOWEVENT_RESIZED)
|
||||
{
|
||||
m_display->ResizeRenderWindow(event->window.data1, event->window.data2);
|
||||
OnPlatformWindowResized(event->window.data1, event->window.data2, GetDPIScaleFactor(m_window));
|
||||
OnHostDisplayResized(event->window.data1, event->window.data2, GetDPIScaleFactor(m_window));
|
||||
}
|
||||
else if (event->window.event == SDL_WINDOWEVENT_MOVED)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user