src/video/SDL_blit.h
changeset 2899 a0c837a16e4c
parent 2898 e40448bc7727
child 3035 ff602fdfdedc
     1.1 --- a/src/video/SDL_blit.h	Sun Dec 21 08:28:25 2008 +0000
     1.2 +++ b/src/video/SDL_blit.h	Sun Dec 21 08:55:06 2008 +0000
     1.3 @@ -236,6 +236,10 @@
     1.4  {									\
     1.5  	Pixel = (r<<16)|(g<<8)|b;					\
     1.6  }
     1.7 +#define ARGB8888_FROM_RGBA(Pixel, r, g, b, a)				\
     1.8 +{									\
     1.9 +	Pixel = (a<<24)|(r<<16)|(g<<8)|b;				\
    1.10 +}
    1.11  #define ASSEMBLE_RGB(buf, bpp, fmt, r, g, b) 				\
    1.12  {									\
    1.13  	switch (bpp) {							\