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

Felix Paul Kühne git at videolan.org
Sun Jun 10 12:26:08 CEST 2018


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sun Jun 10 10:55:03 2018 +0200| [e5b2bb20b3285974e05b6c9e11a9d97584cf2099] | 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

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

 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 dd15cf2370..300c99d108 100644
--- a/modules/gui/macosx/Windows.m
+++ b/modules/gui/macosx/Windows.m
@@ -342,7 +342,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