comparison src/video/SDL_shape_internals.h @ 4837:2e446923c9fb

Fixed lots of little bugs in Win32 shaping and in SDL_CalculateShapeTree(). Still not actually showing anything on Windows, though there's no crashes and everything compiles fine. Bugger.
author egottlieb
date Fri, 06 Aug 2010 20:22:14 -0400
parents 3dfe779900f5
children 14870d46ee2d
comparison
equal deleted inserted replaced
4836:7eb8ca721a5b 4837:2e446923c9fb
53 } SDL_ShapeTree; 53 } SDL_ShapeTree;
54 54
55 typedef void(*SDL_TraversalFunction)(SDL_ShapeTree*,void*); 55 typedef void(*SDL_TraversalFunction)(SDL_ShapeTree*,void*);
56 56
57 extern void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode,SDL_Surface *shape,Uint8* bitmap,Uint8 ppb); 57 extern void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode,SDL_Surface *shape,Uint8* bitmap,Uint8 ppb);
58 extern SDL_ShapeTree* SDL_CalculateShapeTree(SDL_WindowShapeMode mode,SDL_Surface* shape,SDL_bool invert); 58 extern SDL_ShapeTree* SDL_CalculateShapeTree(SDL_WindowShapeMode mode,SDL_Surface* shape);
59 extern void SDL_TraverseShapeTree(SDL_ShapeTree *tree,SDL_TraversalFunction function,void* closure); 59 extern void SDL_TraverseShapeTree(SDL_ShapeTree *tree,SDL_TraversalFunction function,void* closure);
60 extern void SDL_FreeShapeTree(SDL_ShapeTree** shapeTree); 60 extern void SDL_FreeShapeTree(SDL_ShapeTree** shapeTree);
61 61
62 /* Ends C function definitions when using C++ */ 62 /* Ends C function definitions when using C++ */
63 #ifdef __cplusplus 63 #ifdef __cplusplus