src/video/cocoa/SDL_cocoashape.m
changeset 4833 34fb492cefe3
parent 4832 0c82f20327ec
child 4834 fd5bb97ec05d
--- a/src/video/cocoa/SDL_cocoashape.m	Thu Aug 05 00:53:38 2010 -0400
+++ b/src/video/cocoa/SDL_cocoashape.m	Thu Aug 05 01:03:24 2010 -0400
@@ -20,6 +20,7 @@
     eligottlieb@gmail.com
 */
 
+#include "SDL_assert.h"
 #include "SDL_stdinc.h"
 #include "SDL_cocoavideo.h"
 #include "SDL_shape.h"
@@ -81,6 +82,7 @@
 	//NSRectFill([[((SDL_WindowData*)shaper->window->driverdata)->nswindow contentView] frame]);
 	/* TODO: It looks like Cocoa can set a clipping path based on a list of rectangles.  That's what we get from the
            Windoze shape-calculation code: a list of rectangles.  This will work... I think. */
+	data->shape = SDL_CalculateShapeTree(*shapeMode,shape,SDL_FALSE);
 	NSBezierPath* clipPath = [NSBezierPath bezierPath];
 	
 	SDL_PathConglomeration cong = {clipPath,shaper->window};