[vlc-commits] vout_ios2: partially revert commit 83228de55 due broken scaleFactor ( refs #11745)
Gleb Pinigin
git at videolan.org
Wed Jul 9 21:11:05 CEST 2014
vlc/vlc-2.2 | branch: master | Gleb Pinigin <gpinigin at gmail.com> | Wed Jul 9 16:28:40 2014 +0700| [9525cf6dee09618f0228c7edfeba76a03b27c75e] | committer: Felix Paul Kühne
vout_ios2: partially revert commit 83228de55 due broken scaleFactor (refs #11745)
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
(cherry picked from commit 3870474bc915b9bfdf8d4df6e4ade760f0f3a7a7)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=9525cf6dee09618f0228c7edfeba76a03b27c75e
---
modules/video_output/ios2.m | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
index 5525112..e369307 100644
--- a/modules/video_output/ios2.m
+++ b/modules/video_output/ios2.m
@@ -307,6 +307,10 @@ static int Control(vout_display_t *vd, int query, va_list ap)
sys->place = place;
}
+ // x / y are top left corner, but we need the lower left one
+ if (query != VOUT_DISPLAY_CHANGE_DISPLAY_SIZE)
+ glViewport(place.x, cfg_tmp.display.height - (place.y + place.height), place.width, place.height);
+
[autoreleasePool release];
return VLC_SUCCESS;
}
More information about the vlc-commits
mailing list