added support for font definitions with different character offset and size
[rocksndiamonds.git] / src / libgame / system.h
index 2ca0021fb6d224ad9bbe5a7466fef9d1304daea2..7f6f17caae790a13cd330a0f8790752a065679b8 100644 (file)
@@ -871,8 +871,11 @@ struct FontBitmapInfo
 {
   Bitmap *bitmap;
 
-  int src_x, src_y;            /* start position of animation frames */
-  int width, height;           /* width/height of each animation frame */
+  int src_x, src_y;            /* start position of font characters */
+  int width, height;           /* width / height of font characters */
+
+  int offset_x;                        /* offset to next font character */
+  int offset_y;                        /* offset to next font character */
 
   int draw_xoffset;            /* offset for drawing font characters */
   int draw_yoffset;            /* offset for drawing font characters */
@@ -1422,6 +1425,12 @@ struct TextPosInfo
   int style;                   /* needed for panel time/health graphics */
 };
 
+struct MouseActionInfo
+{
+  int lx, ly;
+  int button;
+};
+
 struct LevelStats
 {
   int played;
@@ -1508,6 +1517,7 @@ void SetRedrawMaskFromArea(int, int, int, int);
 
 void LimitScreenUpdates(boolean);
 
+void InitVideoDefaults(void);
 void InitVideoDisplay(void);
 void CloseVideoDisplay(void);
 void InitVideoBuffer(int, int, int, boolean);