Skip to content

Commit

Permalink
ui: Use SDL_GL_GetDrawableSize when rendering framebuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed May 9, 2022
1 parent 722579b commit 6f3470a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/xui/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ void xemu_hud_render(void)
}

if (!first_boot_window.is_open) {
RenderFramebuffer(g_tex, io.DisplaySize.x, io.DisplaySize.y, g_flip_req);
int ww, wh;
SDL_GL_GetDrawableSize(g_sdl_window, &ww, &wh);
RenderFramebuffer(g_tex, ww, wh, g_flip_req);
}

ImGui_ImplOpenGL3_NewFrame();
Expand Down

0 comments on commit 6f3470a

Please sign in to comment.