Commit f23389df authored by Felix Paul Kühne's avatar Felix Paul Kühne

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

parent de9a7b4f
...@@ -542,13 +542,7 @@ static void OpenglSwap (vlc_gl_t *gl) ...@@ -542,13 +542,7 @@ static void OpenglSwap (vlc_gl_t *gl)
- (void)setFrameToBoundsOfView:(NSValue *)value - (void)setFrameToBoundsOfView:(NSValue *)value
{ {
NSView *parentView = [value pointerValue]; NSView *parentView = [value pointerValue];
NSRect frame; [self setFrame:[parentView bounds]];
/* 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];
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment