rnd-20030126-2-src
[rocksndiamonds.git] / src / libgame / system.c
index 3c4613fbe76f704cb3fce24ca92ec2763e7651ff..1fbafd7818052124b5e0b17847bfc5a35f1d6258 100644 (file)
@@ -37,6 +37,7 @@ struct VideoSystemInfo        video;
 struct AudioSystemInfo audio;
 struct GfxInfo         gfx;
 struct FontInfo                font;
+struct AnimInfo                anim;
 struct ArtworkInfo     artwork;
 struct JoystickInfo    joystick;
 struct SetupInfo       setup;
@@ -864,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                                                           */