Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
2898:e40448bc7727 | 2899:a0c837a16e4c |
---|---|
234 } | 234 } |
235 #define RGB888_FROM_RGB(Pixel, r, g, b) \ | 235 #define RGB888_FROM_RGB(Pixel, r, g, b) \ |
236 { \ | 236 { \ |
237 Pixel = (r<<16)|(g<<8)|b; \ | 237 Pixel = (r<<16)|(g<<8)|b; \ |
238 } | 238 } |
239 #define ARGB8888_FROM_RGBA(Pixel, r, g, b, a) \ | |
240 { \ | |
241 Pixel = (a<<24)|(r<<16)|(g<<8)|b; \ | |
242 } | |
239 #define ASSEMBLE_RGB(buf, bpp, fmt, r, g, b) \ | 243 #define ASSEMBLE_RGB(buf, bpp, fmt, r, g, b) \ |
240 { \ | 244 { \ |
241 switch (bpp) { \ | 245 switch (bpp) { \ |
242 case 2: { \ | 246 case 2: { \ |
243 Uint16 Pixel; \ | 247 Uint16 Pixel; \ |