mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 21:41:19 +12:00
Fix render resolution at different UI scales (#514)
This commit is contained in:
parent
a3476c7b7c
commit
d3721c3f46
18 changed files with 128 additions and 57 deletions
|
@ -556,9 +556,9 @@ void OpenGLRenderer::DrawBackbufferQuad(LatteTextureView* texView, RendererOutpu
|
|||
{
|
||||
int windowWidth, windowHeight;
|
||||
if (padView)
|
||||
gui_getPadWindowSize(&windowWidth, &windowHeight);
|
||||
gui_getPadWindowPhysSize(windowWidth, windowHeight);
|
||||
else
|
||||
gui_getWindowSize(&windowWidth, &windowHeight);
|
||||
gui_getWindowPhysSize(windowWidth, windowHeight);
|
||||
g_renderer->renderTarget_setViewport(0, 0, windowWidth, windowHeight, 0.0f, 1.0f);
|
||||
g_renderer->ClearColorbuffer(padView);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue