video zoom: Fix visual tools with DPI scaling
This commit is contained in:
parent
98d476102e
commit
17831ca0f4
1 changed files with 2 additions and 2 deletions
|
@ -197,11 +197,11 @@ void VideoDisplay::Render() try {
|
||||||
|
|
||||||
int client_w, client_h;
|
int client_w, client_h;
|
||||||
GetClientSize(&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(glMatrixMode(GL_PROJECTION));
|
||||||
E(glLoadIdentity());
|
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()) {
|
if (OPT_GET("Video/Overscan Mask")->GetBool()) {
|
||||||
double ar = con->videoController->GetAspectRatioValue();
|
double ar = con->videoController->GetAspectRatioValue();
|
||||||
|
|
Loading…
Reference in a new issue