Commit 86fe6371 authored by Gleb Pinigin's avatar Gleb Pinigin
Browse files

patches: fix incorrect output size on external display (fixes #9079)

parent e4de5bf4
From c447793b7e9340841e178536ccefcb7dfddcd941 Mon Sep 17 00:00:00 2001
From baf0d1cd5a92aae1e22e11abcb38777b688ea993 Mon Sep 17 00:00:00 2001
From: Gleb Pinigin <gpinigin@gmail.com>
Date: Sun, 28 Jul 2013 18:32:51 +0700
Subject: [PATCH 14/14] io: implement network timeout(default 60s)
Subject: [PATCH 15/16] io: implement network timeout(default 60s)
---
src/network/io.c | 15 ++++++++++++++-
......
From f087db5f78d0b5a9ac67f0b664b115ba729c2302 Mon Sep 17 00:00:00 2001
From: Gleb Pinigin <gpinigin@gmail.com>
Date: Fri, 2 Aug 2013 19:41:55 +0700
Subject: [PATCH 16/16] 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.
---
modules/video_output/ios2.m | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
index 28369b4..397be6d 100644
--- a/modules/video_output/ios2.m
+++ b/modules/video_output/ios2.m
@@ -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
--
1.7.12.4 (Apple Git-37)
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