jayji pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fd7f878320caedf822ad12b2128b4570b8890051

commit fd7f878320caedf822ad12b2128b4570b8890051
Author: Jean Guyomarc'h <[email protected]>
Date:   Thu Mar 9 22:56:47 2017 +0100

    ecore_cocoa: factorize a little access to the cocoa window
---
 src/lib/ecore_cocoa/ecore_cocoa_window.m | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m 
b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index 716fc64..2edb8b6 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -464,13 +464,14 @@ ecore_cocoa_window_resize(Ecore_Cocoa_Window *window,
    EINA_SAFETY_ON_NULL_RETURN(window);
 
    NSRect win_frame;
+   EcoreCocoaWindow *const win = window->window;
 
-   win_frame = [window->window frame];
+   win_frame = [win frame];
    win_frame.size.height = h +
-      (([window->window isFullScreen] == YES) ? 0 : 
ecore_cocoa_titlebar_height_get());
+      (([win isFullScreen] == YES) ? 0 : ecore_cocoa_titlebar_height_get());
    win_frame.size.width = w;
 
-   [window->window setFrame:win_frame display:YES];
+   [win setFrame:win_frame display:YES];
 }
 
 EAPI void

-- 


Reply via email to