aboutsummaryrefslogtreecommitdiff
path: root/src/osc_graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osc_graphics.h')
-rw-r--r--src/osc_graphics.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osc_graphics.h b/src/osc_graphics.h
index 47afa7d..9ae1ee4 100644
--- a/src/osc_graphics.h
+++ b/src/osc_graphics.h
@@ -65,6 +65,10 @@ public:
extern SDL_Surface *screen;
extern int config_dump_osc;
+extern int config_framerate;
+
+#define FRAME_DELAY \
+ (1000/config_framerate) /* frame delay in ms */
void rgba_blit_with_alpha(SDL_Surface *src_surf, SDL_Surface *dst_surf,
Uint8 alpha = SDL_ALPHA_TRANSPARENT);