video zoom: Fix visual tools with DPI scaling

This commit is contained in:
arch1t3cht 2022-10-11 15:15:40 +02:00
parent 98d476102e
commit 17831ca0f4
1 changed files with 2 additions and 2 deletions

View File

@ -197,11 +197,11 @@ void VideoDisplay::Render() try {
int client_w, client_h;
GetClientSize(&client_w, &client_h);
E(glViewport(0, 0, client_w, client_h));
E(glViewport(0, 0, client_w * scale_factor, client_h * scale_factor));
E(glMatrixMode(GL_PROJECTION));
E(glLoadIdentity());
E(glOrtho(0.0f, client_w / scale_factor, client_h / scale_factor, 0.0f, -1000.0f, 1000.0f));
E(glOrtho(0.0f, client_w, client_h, 0.0f, -1000.0f, 1000.0f));
if (OPT_GET("Video/Overscan Mask")->GetBool()) {
double ar = con->videoController->GetAspectRatioValue();