From af19d15a783a6a73af69ca377c9302d8f22a5b28 Mon Sep 17 00:00:00 2001 From: Jean Guyomarc'h Date: Thu, 15 Oct 2015 13:58:52 +0200 Subject: [PATCH] ecore_cocoa_window: cosmetic changes Signed-off-by: Cedric BAIL --- src/lib/ecore_cocoa/ecore_cocoa_window.m | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m index a9f1e9f..670b530 100644 --- a/src/lib/ecore_cocoa/ecore_cocoa_window.m +++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m @@ -274,14 +274,18 @@ ecore_cocoa_window_new(int x, int height) { Ecore_Cocoa_Window *w; - - EcoreCocoaWindow *window = [[EcoreCocoaWindow alloc] initWithContentRect:NSMakeRect(x, y, width, height) - styleMask:(NSTitledWindowMask | - NSClosableWindowMask | - NSResizableWindowMask | - NSMiniaturizableWindowMask) - backing:NSBackingStoreBuffered - defer:NO]; + EcoreCocoaWindow *window; + NSRect frame = NSMakeRect(x, y, width, height); + NSUInteger style = + NSTitledWindowMask | + NSClosableWindowMask | + NSResizableWindowMask | + NSMiniaturizableWindowMask; + + window = [[EcoreCocoaWindow alloc] initWithContentRect:frame + styleMask:style + backing:NSBackingStoreBuffered + defer:NO]; if (EINA_UNLIKELY(!window)) { -- 2.7.4