Commit 437aa16c authored by Gleb Pinigin's avatar Gleb Pinigin Committed by Felix Paul Kühne

vout_ios2: take into account scale of attached screen

As said in Apple documentation drawRect should not be implemented for view based on opengl es layer.
Instead contentScaleFactor should be changed manually if needed. Underlying opengl es layer will adjust its scale accordingly.
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 5221b6f0
......@@ -393,10 +393,10 @@ static void OpenglESSwap(vlc_gl_t *gl)
[super dealloc];
}
/* we don't get the correct scale factor if we don't overwrite this method */
- (void)drawRect:(CGRect) rect
- (void)didMoveToWindow
{
[super drawRect:rect];
self.contentScaleFactor = self.window.screen.scale;
_bufferNeedReset = YES;
}
- (void)createBuffers
......
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