return renderer_info.name;
}
+static SDL_Surface *SDLGetOpaqueSurface(SDL_Surface *surface)
+{
+ SDL_Surface *new_surface;
+
+ if (surface == NULL)
+ return NULL;
+
+ if ((new_surface = SDLGetNativeSurface(surface)) == NULL)
+ Fail("SDLGetNativeSurface() failed");
+
+ // remove alpha channel from native non-transparent surface, if defined
+ SDLSetAlpha(new_surface, FALSE, 0);
+
+ // remove transparent color from native non-transparent surface, if defined
+ SDL_SetColorKey(new_surface, UNSET_TRANSPARENT_PIXEL, 0);
+
+ return new_surface;
+}
+
SDL_Surface *SDLGetNativeSurface(SDL_Surface *surface)
{
SDL_PixelFormat format;
return zoom_dst;
}
-static SDL_Surface *SDLGetOpaqueSurface(SDL_Surface *surface)
-{
- SDL_Surface *new_surface;
-
- if (surface == NULL)
- return NULL;
-
- if ((new_surface = SDLGetNativeSurface(surface)) == NULL)
- Fail("SDLGetNativeSurface() failed");
-
- // remove alpha channel from native non-transparent surface, if defined
- SDLSetAlpha(new_surface, FALSE, 0);
-
- // remove transparent color from native non-transparent surface, if defined
- SDL_SetColorKey(new_surface, UNSET_TRANSPARENT_PIXEL, 0);
-
- return new_surface;
-}
-
Bitmap *SDLZoomBitmap(Bitmap *src_bitmap, int dst_width, int dst_height)
{
Bitmap *dst_bitmap = CreateBitmapStruct();