[vlc-commits] vout_ios2: partially revert commit 83228de55 due broken scaleFactor ( refs #11745)

Gleb Pinigin git at videolan.org
Wed Jul 9 21:08:44 CEST 2014


vlc | branch: master | Gleb Pinigin <gpinigin at gmail.com> | Wed Jul  9 16:28:40 2014 +0700| [3870474bc915b9bfdf8d4df6e4ade760f0f3a7a7] | 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>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3870474bc915b9bfdf8d4df6e4ade760f0f3a7a7
---

 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