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

vout ios: take scale factor into account when initializing the rendering

parent 9ffab184
...@@ -207,9 +207,10 @@ static int Open(vlc_object_t *this) ...@@ -207,9 +207,10 @@ static int Open(vlc_object_t *this)
vd->control = Control; vd->control = Control;
/* forward our dimensions to the vout core */ /* forward our dimensions to the vout core */
CGSize viewSize = sys->viewContainer.frame.size; CGFloat scaleFactor = sys->viewContainer.contentScaleFactor;
CGSize viewSize = sys->viewContainer.bounds.size;
vout_display_SendEventFullscreen(vd, false); vout_display_SendEventFullscreen(vd, false);
vout_display_SendEventDisplaySize(vd, (int)viewSize.width, (int)viewSize.height); vout_display_SendEventDisplaySize(vd, viewSize.width * scaleFactor, viewSize.height * scaleFactor, false);
/* */ /* */
[[NSNotificationCenter defaultCenter] addObserver:sys->glESView [[NSNotificationCenter defaultCenter] addObserver:sys->glESView
...@@ -547,8 +548,8 @@ static void OpenglESSwap(vlc_gl_t *gl) ...@@ -547,8 +548,8 @@ static void OpenglESSwap(vlc_gl_t *gl)
- (void)updateConstraints - (void)updateConstraints
{ {
[self reshape];
[super updateConstraints]; [super updateConstraints];
[self reshape];
} }
- (BOOL)isOpaque - (BOOL)isOpaque
......
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