|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/* $Id: gfxpixelimage.c,v 1.14 2012/01/28 21:53:19 steffen Exp $ */
|
|
|
|
|
/* $Id: gfxpixelimage.c,v 1.15 2015/07/10 21:59:37 steffen Exp $ */
|
|
|
|
|
/* gfx pixel manipulation and image manipulation */
|
|
|
|
|
|
|
|
|
|
#include "bomberclone.h"
|
|
|
|
@ -54,7 +54,7 @@ getpixel (SDL_Surface * surface, int x, int y)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static inline Uint32
|
|
|
|
|
static Uint32
|
|
|
|
|
getpixel32 (SDL_Surface * surface, int x, int y)
|
|
|
|
|
{
|
|
|
|
|
/* Here p is the address to the pixel we want to retrieve */
|
|
|
|
@ -63,7 +63,7 @@ getpixel32 (SDL_Surface * surface, int x, int y)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static inline Uint32
|
|
|
|
|
static Uint32
|
|
|
|
|
getpixel24 (SDL_Surface * surface, int x, int y)
|
|
|
|
|
{
|
|
|
|
|
/* Here p is the address to the pixel we want to retrieve */
|
|
|
|
@ -76,7 +76,7 @@ getpixel24 (SDL_Surface * surface, int x, int y)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static inline Uint32
|
|
|
|
|
static Uint32
|
|
|
|
|
getpixel16 (SDL_Surface * surface, int x, int y)
|
|
|
|
|
{
|
|
|
|
|
/* Here p is the address to the pixel we want to retrieve */
|
|
|
|
@ -86,7 +86,7 @@ getpixel16 (SDL_Surface * surface, int x, int y)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* putpixel seperated for every BPP version */
|
|
|
|
|
inline void
|
|
|
|
|
void
|
|
|
|
|
putpixel (SDL_Surface * surface, int x, int y, Uint32 pixel)
|
|
|
|
|
{
|
|
|
|
|
/* Here p is the address to the pixel we want to set */
|
|
|
|
@ -119,7 +119,7 @@ putpixel (SDL_Surface * surface, int x, int y, Uint32 pixel)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
|
static void
|
|
|
|
|
putpixel32 (SDL_Surface * surface, int x, int y, Uint32 pixel)
|
|
|
|
|
{
|
|
|
|
|
/* Here p is the address to the pixel we want to set */
|
|
|
|
@ -128,7 +128,7 @@ putpixel32 (SDL_Surface * surface, int x, int y, Uint32 pixel)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
|
static void
|
|
|
|
|
putpixel24 (SDL_Surface * surface, int x, int y, Uint32 pixel)
|
|
|
|
|
{
|
|
|
|
|
/* Here p is the address to the pixel we want to set */
|
|
|
|
@ -145,7 +145,7 @@ putpixel24 (SDL_Surface * surface, int x, int y, Uint32 pixel)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
|
static void
|
|
|
|
|
putpixel16 (SDL_Surface * surface, int x, int y, Uint32 pixel)
|
|
|
|
|
{
|
|
|
|
|
/* Here p is the address to the pixel we want to set */
|
|
|
|
|