[client] imgui: use improved high DPI rendering

This actually makes imgui render at a higher resolution, avoiding scaling
and resulting blurriness.
This commit is contained in:
Quantum 2021-07-23 00:01:10 -04:00 committed by Geoffrey McRae
parent b5c5ecc074
commit 5d053128ac
11 changed files with 122 additions and 18 deletions

View file

@ -354,6 +354,10 @@ void opengl_on_resize(void * opaque, const int width, const int height, const do
1.0f
);
}
// this is needed to refresh the font atlas texture
ImGui_ImplOpenGL2_Shutdown();
ImGui_ImplOpenGL2_NewFrame();
}
bool opengl_on_mouse_shape(void * opaque, const LG_RendererCursor cursor,