[vlc-commits] vout_macosx: make sure that we see the entire video instead of the lower left quarter in HiDPI mode

Felix Paul Kühne git at videolan.org
Tue Jun 12 20:23:21 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Jun 12 20:23:08 2012 +0200| [f23389df0f358ec05ed0483a91cd4cfc56f867a5] | committer: Felix Paul Kühne

vout_macosx: make sure that we see the entire video instead of the lower left quarter in HiDPI mode

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

 modules/video_output/macosx.m |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 0093b8e..4bcf176 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -542,13 +542,7 @@ static void OpenglSwap (vlc_gl_t *gl)
 - (void)setFrameToBoundsOfView:(NSValue *)value
 {
     NSView *parentView = [value pointerValue];
-    NSRect frame;
-    /* on HiDPI displays, the point bounds don't equal the actual pixel based bounds */
-    if (OSX_LION)
-        frame = [parentView convertRectToBacking:[parentView bounds]];
-    else
-        frame = [parentView bounds];
-    [self setFrame:frame];
+    [self setFrame:[parentView bounds]];
 }
 
 /**



More information about the vlc-commits mailing list