From 43340b942278d6be3c730c91fd1b2baa3e5345d8 Mon Sep 17 00:00:00 2001 From: thecozies <79979276+thecozies@users.noreply.github.com> Date: Sun, 7 Jan 2024 15:38:38 -0600 Subject: [PATCH] set default res to 1080 and dont hide cur doc before reload --- src/ui/ui_renderer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ui/ui_renderer.cpp b/src/ui/ui_renderer.cpp index 7a71aec..6015edb 100644 --- a/src/ui/ui_renderer.cpp +++ b/src/ui/ui_renderer.cpp @@ -676,7 +676,6 @@ struct { Rml::ReleaseMemoryPools(); if (current_document != nullptr) { - current_document->Hide(); current_document->Close(); } @@ -865,8 +864,8 @@ void draw_hook(RT64::RenderCommandList* command_list, RT64::RenderTexture* swap_ int width, height; SDL_GetWindowSizeInPixels(window, &width, &height); - // Scale the UI based on the window size with 720 vertical resolution as the reference point. - UIContext.rml.context->SetDensityIndependentPixelRatio(height / 720.0f); + // Scale the UI based on the window size with 1080 vertical resolution as the reference point. + UIContext.rml.context->SetDensityIndependentPixelRatio(height / 1080.0f); UIContext.rml.render_interface->start(command_list, width, height);