struct AudioSystemInfo audio;
struct GfxInfo gfx;
struct FontInfo font;
+struct AnimInfo anim;
struct ArtworkInfo artwork;
struct JoystickInfo joystick;
struct SetupInfo setup;
int width, int height)
{
if (DrawingOnBackground(x, y))
- BlitBitmap(gfx.background_bitmap, bitmap,
- x - gfx.real_sx, y - gfx.real_sy, width, height, x, y);
+ BlitBitmap(gfx.background_bitmap, bitmap, x, y, width, height, x, y);
else
ClearRectangle(bitmap, x, y, width, height);
}
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 */