[Gridflow-cvs] [svn] commit: r5582 - /trunk/src/quartz.m

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed May 5 14:00:05 EDT 2010


Author: pboivin
Date: Wed May  5 14:00:03 2010
New Revision: 5582

Log:
add option for borderless windows on OSX (still needs some work...)

Modified:
    trunk/src/quartz.m

Modified: trunk/src/quartz.m
==============================================================================
--- trunk/src/quartz.m (original)
+++ trunk/src/quartz.m Wed May  5 14:00:03 2010
@@ -77,11 +77,12 @@
 	GFView *widget; /* GridFlow's Cocoa widget */
 	int mouse_state;
 	t_clock *clock;
-	\constructor (t_symbol *mode) {
+	\constructor (t_symbol *mode, bool border=true) {
 		NSRect r = {{0,0}, {320,240}};
 		window = [[NSWindow alloc]
 			initWithContentRect: r
-			styleMask: NSTitledWindowMask | NSMiniaturizableWindowMask | NSClosableWindowMask
+			styleMask: border ? (NSTitledWindowMask | NSMiniaturizableWindowMask 
+				                | NSClosableWindowMask) : NSBorderlessWindowMask
 			backing: NSBackingStoreBuffered
 			defer: YES];
 		widget = [[GFView alloc] initWithFrame: r];



More information about the Gridflow-cvs mailing list