[vlc-commits] macosx/windows: don't access AppKit instance variables directly

Felix Paul Kühne git at videolan.org
Sun Sep 23 19:45:23 CEST 2018


vlc/vlc-3.0 | branch: master | Felix Paul Kühne <felix at feepk.net> | Sun Jun 10 10:55:03 2018 +0200| [c5ae5bb68fc809255046ac9c53b6e63f395f246e] | committer: Felix Paul Kühne

macosx/windows: don't access AppKit instance variables directly

Access to those will be removed in a future update of macOS

(cherry picked from commit e5b2bb20b3285974e05b6c9e11a9d97584cf2099)

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

 modules/gui/macosx/Windows.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/Windows.m b/modules/gui/macosx/Windows.m
index ff89188c8c..e8906bb7e1 100644
--- a/modules/gui/macosx/Windows.m
+++ b/modules/gui/macosx/Windows.m
@@ -356,7 +356,7 @@
      bottom edge is on the screen or can be on the screen when the user moves
      the window */
     difference = NSMaxY (screenRect) - NSMaxY (frameRect);
-    if (_styleMask & NSResizableWindowMask) {
+    if (self.styleMask & NSResizableWindowMask) {
         CGFloat difference2;
 
         difference2 = screenRect.origin.y - frameRect.origin.y;



More information about the vlc-commits mailing list