Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed a couple of bugs in the general and X11 shape code, and fixed a…

… bug in testshape that was keeping it from recognizing surfaces without alpha. Thanks to Andreas's bit-bashing tip, X11 shaped windows now work entirely, AFAICT.
  • Loading branch information
esennesh committed Aug 2, 2010
1 parent 15264b6 commit 01037d4e21687f6c7b5c306ffb3616ca485d4add

File 2 of 4 in 01037d4

@@ -19,6 +19,7 @@
Eli Gottlieb
eligottlieb@gmail.com
*/
#include "SDL_config.h"

#ifndef _SDL_shape_internals_h
#define _SDL_shape_internals_h
@@ -51,7 +52,7 @@ typedef struct {
SDL_ShapeUnion data;
} SDL_ShapeTree;

extern void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode,SDL_Surface *shape,Uint8* bitmap,Uint8 ppb,Uint8 value);
extern void SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode,SDL_Surface *shape,Uint8* bitmap,Uint8 ppb);
extern SDL_ShapeTree* SDL_CalculateShapeTree(SDL_WindowShapeMode mode,SDL_Surface* shape,SDL_bool invert);
extern void SDL_TraverseShapeTree(SDL_ShapeTree *tree,void(*function)(SDL_ShapeTree*,void*),void* closure);
extern void SDL_FreeShapeTree(SDL_ShapeTree** shapeTree);

0 comments on commit 01037d4

Please sign in to comment.