+ program.msdos_pointer_filename = msdos_pointer_filename;
+}
+
+inline void InitPlayfieldInfo(int sx, int sy, int sxsize, int sysize,
+ int real_sx, int real_sy,
+ int full_sxsize, int full_sysize)
+{
+ playfield.sx = sx;
+ playfield.sy = sy;
+ playfield.sxsize = sxsize;
+ playfield.sysize = sysize;
+ playfield.real_sx = real_sx;
+ playfield.real_sy = real_sy;
+ playfield.full_sxsize = full_sxsize;
+ playfield.full_sysize = full_sysize;
+}
+
+inline void InitDoor1Info(int dx, int dy, int dxsize, int dysize)
+{
+ playfield.dx = dx;
+ playfield.dy = dy;
+ playfield.dxsize = dxsize;
+ playfield.dysize = dysize;
+}
+
+inline void InitDoor2Info(int vx, int vy, int vxsize, int vysize)
+{
+ playfield.vx = vx;
+ playfield.vy = vy;
+ playfield.vxsize = vxsize;
+ playfield.vysize = vysize;
+}
+
+inline void InitScrollbufferInfo(int scrollbuffer_width,
+ int scrollbuffer_height)
+{
+ /* currently only used by MSDOS code to alloc VRAM buffer, if available */
+ playfield.scrollbuffer_width = scrollbuffer_width;
+ playfield.scrollbuffer_height = scrollbuffer_height;
+}
+
+inline static int GetRealDepth(int depth)
+{
+ return (depth == DEFAULT_DEPTH ? video.default_depth : depth);