summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2015-10-15 13:58:52 +0200
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-10 08:32:49 +0100
commit267c8ea18a59ea08440002de35ad895ad8403bf9 (patch)
tree485246d28393c939d5ff7855cf2e4804903d98b9
parent731ab05a28da755812e222cdc7a41151448c8032 (diff)
ecore_cocoa_window: cosmetic changes
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_window.m20
1 files 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 a9f1e9f701..670b530bbd 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,
274 int height) 274 int height)
275{ 275{
276 Ecore_Cocoa_Window *w; 276 Ecore_Cocoa_Window *w;
277 277 EcoreCocoaWindow *window;
278 EcoreCocoaWindow *window = [[EcoreCocoaWindow alloc] initWithContentRect:NSMakeRect(x, y, width, height) 278 NSRect frame = NSMakeRect(x, y, width, height);
279 styleMask:(NSTitledWindowMask | 279 NSUInteger style =
280 NSClosableWindowMask | 280 NSTitledWindowMask |
281 NSResizableWindowMask | 281 NSClosableWindowMask |
282 NSMiniaturizableWindowMask) 282 NSResizableWindowMask |
283 backing:NSBackingStoreBuffered 283 NSMiniaturizableWindowMask;
284 defer:NO]; 284
285 window = [[EcoreCocoaWindow alloc] initWithContentRect:frame
286 styleMask:style
287 backing:NSBackingStoreBuffered
288 defer:NO];
285 289
286 if (EINA_UNLIKELY(!window)) 290 if (EINA_UNLIKELY(!window))
287 { 291 {