mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Revert "Fix for HiDPI scaling of videos (#2)"
This reverts commit 72abee27088bddd4bec44dac21ada6ae3de8d4c8.
This commit is contained in:
parent
8a4ee51f2d
commit
f34cd4ca8a
@ -190,10 +190,8 @@ void VideoDisplay::Render() try {
|
||||
if (!viewport_height || !viewport_width)
|
||||
PositionVideo();
|
||||
|
||||
videoOut->Render(viewport_left, viewport_bottom, viewport_width * GetContentScaleFactor(),
|
||||
viewport_height * GetContentScaleFactor());
|
||||
E(glViewport(0, std::min(viewport_bottom, 0), videoSize.GetWidth() * GetContentScaleFactor(),
|
||||
videoSize.GetHeight() * GetContentScaleFactor()));
|
||||
videoOut->Render(viewport_left, viewport_bottom, viewport_width, viewport_height);
|
||||
E(glViewport(0, std::min(viewport_bottom, 0), videoSize.GetWidth(), videoSize.GetHeight()));
|
||||
|
||||
E(glMatrixMode(GL_PROJECTION));
|
||||
E(glLoadIdentity());
|
||||
|
Loading…
x
Reference in New Issue
Block a user