[vlc-commits] vout/macosx: Remove HiDPI scaling

Marvin Scholz git at videolan.org
Sat Jun 9 01:10:42 CEST 2018


vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Feb  2 13:08:34 2018 +0100| [9a535f9b2da72863fa4959c55d03d6d4037e2980] | committer: Felix Paul Kühne

vout/macosx: Remove HiDPI scaling

(cherry picked from commit a938b7a08e731b4c42b0d1dcb04b773ec33ffbe1)

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

 modules/video_output/macosx.m | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 050cc073a1..b9f19fcba8 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -377,10 +377,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
                 /* we always use our current frame here, because we have some size constraints
                  in the ui vout provider */
                 vout_display_cfg_t cfg_tmp = *cfg;
-                /* on HiDPI displays, the point bounds don't equal the actual pixel based bounds */
-                NSRect bounds = [sys->glView convertRectToBacking:[sys->glView bounds]];
-                cfg_tmp.display.width = bounds.size.width;
-                cfg_tmp.display.height = bounds.size.height;
 
                 /* Reverse vertical alignment as the GL tex are Y inverted */
                 if (cfg_tmp.align.vertical == VOUT_DISPLAY_ALIGN_TOP)



More information about the vlc-commits mailing list