diff src/video/SDL_blit.h @ 2899:a0c837a16e4c

Added ARGB optimized case for Mac OS X
author Sam Lantinga <slouken@libsdl.org>
date Sun, 21 Dec 2008 08:55:06 +0000
parents e40448bc7727
children ff602fdfdedc
line wrap: on
line diff
--- a/src/video/SDL_blit.h	Sun Dec 21 08:28:25 2008 +0000
+++ b/src/video/SDL_blit.h	Sun Dec 21 08:55:06 2008 +0000
@@ -236,6 +236,10 @@
 {									\
 	Pixel = (r<<16)|(g<<8)|b;					\
 }
+#define ARGB8888_FROM_RGBA(Pixel, r, g, b, a)				\
+{									\
+	Pixel = (a<<24)|(r<<16)|(g<<8)|b;				\
+}
 #define ASSEMBLE_RGB(buf, bpp, fmt, r, g, b) 				\
 {									\
 	switch (bpp) {							\