BackToFront();
}
-void ShowEnvelope_MM(int envelope_nr)
-{
- BlitBitmap(backbuffer, bitmap_db_field, REAL_SX, REAL_SY,
- FULL_SXSIZE, FULL_SYSIZE, REAL_SX, REAL_SY);
-
- ShowEnvelope(envelope_nr);
-
- SetDrawtoField(DRAW_TO_BACKBUFFER);
-
- BlitBitmap(bitmap_db_field, backbuffer, REAL_SX, REAL_SY,
- FULL_SXSIZE, FULL_SYSIZE, REAL_SX, REAL_SY);
-}
-
static void PrepareEnvelopeRequestToScreen(Bitmap *bitmap, int sx, int sy,
int xsize, int ysize)
{
if (game_status == GAME_MODE_PLAYING)
BlitScreenToBitmap(backbuffer);
+ if (game_status == GAME_MODE_PLAYING || action == ACTION_OPENING)
+ BlitBitmap(backbuffer, bitmap_db_store_1, 0, 0, WIN_XSIZE, WIN_YSIZE, 0, 0);
+
SetDrawtoField(DRAW_TO_BACKBUFFER);
// SetDrawBackgroundMask(REDRAW_NONE);
if (action == ACTION_OPENING)
{
- BlitBitmap(backbuffer, bitmap_db_store_1, 0, 0, WIN_XSIZE, WIN_YSIZE, 0, 0);
-
if (req_state & REQ_ASK)
{
MapGadget(tool_gadget[TOOL_CTRL_ID_YES]);
DrawFixedGraphicExt(dst_bitmap, x, y, graphic, frame);
}
+void DrawSizedGraphicAnimationExt(DrawBuffer *dst_bitmap, int x, int y,
+ int graphic, int sync_frame, int tilesize,
+ int mask_mode)
+{
+ int frame = getGraphicAnimationFrame(graphic, sync_frame);
+
+ if (mask_mode == USE_MASKING)
+ DrawSizedGraphicThruMaskExt(dst_bitmap, x, y, graphic, frame, tilesize);
+ else
+ DrawSizedGraphicExt(dst_bitmap, x, y, graphic, frame, tilesize);
+}
+
static void DrawGraphicAnimation(int x, int y, int graphic)
{
int lx = LEVELX(x), ly = LEVELY(y);