changed names of constants for different drawing targets
[rocksndiamonds.git] / src / libgame / system.h
index 110e18c2392c3f462650f69e5ad0cf36bb246c29..b7da38b53adcd21081a749a56c6609c8d36ddf37 100644 (file)
@@ -47,9 +47,9 @@
 #define WINDOW_SCALING_NOT_AVAILABLE   FALSE
 #define WINDOW_SCALING_AVAILABLE       TRUE
 
-#define MIN_WINDOW_SCALING_PERCENT     50
+#define MIN_WINDOW_SCALING_PERCENT     30
 #define STD_WINDOW_SCALING_PERCENT     100
-#define MAX_WINDOW_SCALING_PERCENT     300
+#define MAX_WINDOW_SCALING_PERCENT     400
 #define STEP_WINDOW_SCALING_PERCENT    10
 
 /* values for window scaling quality */
 #define DRAW_GLOBAL_ANIM_STAGE_1       1
 #define DRAW_GLOBAL_ANIM_STAGE_2       2
 
-/* values for drawing target for global border */
-#define DRAW_BORDER_TO_BACKBUFFER      0
-#define DRAW_BORDER_TO_SCREEN          1
-#define DRAW_BORDER_TO_FADE_SOURCE     2
-#define DRAW_BORDER_TO_FADE_TARGET     3
+/* values for drawing target (various functions) */
+#define DRAW_TO_BACKBUFFER             0
+#define DRAW_TO_FIELDBUFFER            1
+#define DRAW_TO_SCREEN                 2
+#define DRAW_TO_FADE_SOURCE            3
+#define DRAW_TO_FADE_TARGET            4
 
 /* values for move directions and special "button" key bitmasks */
 #define MV_NONE                        0
@@ -768,6 +769,9 @@ struct VideoSystemInfo
   char *window_scaling_quality;
   int screen_rendering_mode;
 
+  unsigned int frame_delay;
+  unsigned int frame_delay_value;
+
   boolean initialized;
 };
 
@@ -1407,6 +1411,8 @@ Pixel GetPixelFromRGBcompact(Bitmap *, unsigned int);
 void KeyboardAutoRepeatOn(void);
 void KeyboardAutoRepeatOff(void);
 boolean SetVideoMode(boolean);
+void SetVideoFrameDelay(unsigned int);
+unsigned int GetVideoFrameDelay();
 boolean ChangeVideoModeIfNeeded(boolean);
 
 Bitmap *LoadImage(char *);