]> git.sesse.net Git - vlc/commitdiff
vout_ios2: partially revert commit 83228de55 due broken scaleFactor (refs #11745)
authorGleb Pinigin <gpinigin@gmail.com>
Wed, 9 Jul 2014 09:28:40 +0000 (16:28 +0700)
committerFelix Paul Kühne <fkuehne@videolan.org>
Wed, 9 Jul 2014 19:08:35 +0000 (21:08 +0200)
Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
modules/video_output/ios2.m

index 55251126afb609d090ec3df692360a71704b0be4..e369307920b7a8c154e4e6ddd375dfa800e335d1 100644 (file)
@@ -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;
         }