gfx.vysize = vysize;
}
+void InitGfxDoor3Info(int ex, int ey, int exsize, int eysize)
+{
+ gfx.ex = ex;
+ gfx.ey = ey;
+ gfx.exsize = exsize;
+ gfx.eysize = eysize;
+}
+
void InitGfxWindowInfo(int win_xsize, int win_ysize)
{
gfx.win_xsize = win_xsize;
gfx.real_sx, gfx.real_sy,
gfx.full_sxsize, gfx.full_sysize);
else if (mask == REDRAW_DOOR_1)
- {
DrawBitmapFromTile(gfx.background_bitmap, background_bitmap_tile,
gfx.dx, gfx.dy,
gfx.dxsize, gfx.dysize);
- }
}
#else
BlitBitmapTiled(background_bitmap_tile, gfx.background_bitmap, 0, 0, 0, 0,
gfx.real_sx, gfx.real_sy, gfx.full_sxsize, gfx.full_sysize);
else if (mask == REDRAW_DOOR_1)
- {
BlitBitmapTiled(background_bitmap_tile, gfx.background_bitmap, 0, 0, 0, 0,
gfx.dx, gfx.dy, gfx.dxsize, gfx.dysize);
- }
}
#endif
#endif
}
+void LimitScreenUpdates(boolean enable)
+{
+#if defined(TARGET_SDL)
+ SDLLimitScreenUpdates(enable);
+#endif
+}
+
void InitVideoDisplay(void)
{
#if defined(TARGET_SDL)
void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
{
+#if 0
printf("::: InitVideoBuffer\n");
+#endif
video.width = width;
video.height = height;
if (draw_mask & REDRAW_ALL)
return TRUE;
+#if 1
+ if ((draw_mask & REDRAW_FIELD) && IN_GFX_FIELD_FULL(x, y))
+ return TRUE;
+
+ if ((draw_mask & REDRAW_DOOR_1) && IN_GFX_DOOR_1(x, y))
+ return TRUE;
+
+ if ((draw_mask & REDRAW_DOOR_2) && IN_GFX_DOOR_2(x, y))
+ return TRUE;
+
+ if ((draw_mask & REDRAW_DOOR_3) && IN_GFX_DOOR_3(x, y))
+ return TRUE;
+#else
if ((draw_mask & REDRAW_FIELD) &&
x >= gfx.real_sx && x < gfx.real_sx + gfx.full_sxsize)
return TRUE;
if ((draw_mask & REDRAW_DOOR_2) &&
x >= gfx.dx && y >= gfx.vy)
return TRUE;
+#endif
return FALSE;
}
int dst_x_unclipped = dst_x;
int dst_y_unclipped = dst_y;
+ if (src_bitmap == NULL || dst_bitmap == NULL)
+ return;
+
if (DrawingDeactivated(dst_x, dst_y, width, height))
return;