X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=1fbafd7818052124b5e0b17847bfc5a35f1d6258;hb=3d52a86d358f5b1a4b36b80df5d659bce1f5a3a6;hp=301cb271d28c69b065bd17ead43b8b544d3ba4a7;hpb=8d93b043cc23f5a580363763ad459913127a8664;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index 301cb271..1fbafd78 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -865,6 +865,19 @@ void ReloadCustomImage(Bitmap *bitmap, char *basename) free(new_bitmap); } +Bitmap *ZoomBitmap(Bitmap *src_bitmap, int zoom_width, int zoom_height) +{ + Bitmap *dst_bitmap = CreateBitmap(zoom_width, zoom_height, DEFAULT_DEPTH); + +#if defined(TARGET_SDL) + SDLZoomBitmap(src_bitmap, dst_bitmap); +#else + X11ZoomBitmap(src_bitmap, dst_bitmap); +#endif + + return dst_bitmap; +} + /* ========================================================================= */ /* audio functions */