X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbitmask.h;h=915b21c5942934cad367b411183d1a31b266e187;hb=4b985b51e7d2da923d53a61bb5038d11978e9cda;hp=932f8c4a53ea148b4abe4cca4d3671d6877ca295;hpb=2f395aba3974db45f45a8587ed423a3abeab4cd5;p=supertux.git diff --git a/src/bitmask.h b/src/bitmask.h index 932f8c4a5..915b21c59 100644 --- a/src/bitmask.h +++ b/src/bitmask.h @@ -61,8 +61,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef BITMASK_H -#define BITMASK_H +#ifndef SUPERTUX_BITMASK_H +#define SUPERTUX_BITMASK_H #include @@ -84,11 +84,11 @@ #define BITW_MASK 31 #define BITN(n) ((BITW)1 << (n)) -typedef struct bitmask +struct bitmask { int w,h; BITW *bits; -} bitmask; +}; /* Creates a bitmask of width w and height h. * The mask is automatically cleared when created. @@ -140,4 +140,4 @@ void bitmask_draw(bitmask *a,bitmask *b,int xoffset, int yoffset); /* Create a bitmask from a SDL_Surface */ bitmask* bitmask_create_SDL(SDL_Surface* surf); -#endif +#endif /*SUPERTUX_BITMASK_H*/