summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b673c50)
This change also has the effect that the code compiles using versions
of the SDL library older than 2.0.5 (which introduced the pixel format
alias name used before).
SDL_MapRGB(dst_bitmap->surface->format, 0x00, 0x00, 0x00));
dst_bitmap->surface =
SDL_MapRGB(dst_bitmap->surface->format, 0x00, 0x00, 0x00));
dst_bitmap->surface =
- SDL_ConvertSurfaceFormat(dst_bitmap->surface, SDL_PIXELFORMAT_RGBA32, 0);
+ SDL_ConvertSurfaceFormat(dst_bitmap->surface, SDL_PIXELFORMAT_ARGB8888, 0);
for (i = 0; i < MAX_NUM_ELEMENTS; i++)
{
for (i = 0; i < MAX_NUM_ELEMENTS; i++)
{
SDL_MapRGB(tmp_bitmap->surface->format, 0x00, 0x00, 0x00));
tmp_bitmap->surface =
SDL_MapRGB(tmp_bitmap->surface->format, 0x00, 0x00, 0x00));
tmp_bitmap->surface =
- SDL_ConvertSurfaceFormat(tmp_bitmap->surface, SDL_PIXELFORMAT_RGBA32, 0);
+ SDL_ConvertSurfaceFormat(tmp_bitmap->surface, SDL_PIXELFORMAT_ARGB8888, 0);
tmp_bitmap->surface_masked = tmp_bitmap->surface;
tmp_bitmap->surface_masked = tmp_bitmap->surface;