aboutsummaryrefslogtreecommitdiff
path: root/layer_image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layer_image.cpp')
-rw-r--r--layer_image.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/layer_image.cpp b/layer_image.cpp
index 0a8b508..ce23ed9 100644
--- a/layer_image.cpp
+++ b/layer_image.cpp
@@ -10,20 +10,6 @@
Layer::CtorInfo LayerImage::ctor_info = {"image", "s" /* file */};
-#if 0
-
-static inline void
-rgba_blit_with_alpha(SDL_Surface *src_surf, SDL_Surface *dst_surf, Uint8 alpha)
-{
- SDL_FillRect(dst_surf, NULL,
- SDL_MapRGBA(dst_surf->format,
- 0, 0, 0, SDL_ALPHA_TRANSPARENT));
- SDL_gfxBlitRGBA(src_surf, NULL, dst_surf, NULL);
- SDL_gfxMultiplyAlpha(dst_surf, alpha);
-}
-
-#else
-
static inline void
rgba_blit_with_alpha(SDL_Surface *src_surf, SDL_Surface *dst_surf, Uint8 alpha)
{
@@ -57,8 +43,6 @@ rgba_blit_with_alpha(SDL_Surface *src_surf, SDL_Surface *dst_surf, Uint8 alpha)
SDL_MAYBE_UNLOCK(src_surf);
}
-#endif
-
LayerImage::LayerImage(const char *name, SDL_Rect geo, float opacity,
const char *file) :
Layer(name),