projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added video frame counter (currently not used)
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 8c8b7d5ac8515121bc647aec0ecb59b71c14924e..dc7dba8b2db2c763e19ee8cc274c38d73cc50b06 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-570,6
+570,7
@@
void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
video.window_scaling_available = WINDOW_SCALING_STATUS;
video.window_scaling_available = WINDOW_SCALING_STATUS;
+ video.frame_counter = 0;
video.frame_delay = 0;
video.frame_delay_value = GAME_FRAME_DELAY;
video.frame_delay = 0;
video.frame_delay_value = GAME_FRAME_DELAY;
@@
-1665,6
+1666,11
@@
void PeekEvent(Event *event)
SDL_PeepEvents(event, 1, SDL_PEEKEVENT, SDL_FIRSTEVENT, SDL_LASTEVENT);
}
SDL_PeepEvents(event, 1, SDL_PEEKEVENT, SDL_FIRSTEVENT, SDL_LASTEVENT);
}
+void PumpEvents(void)
+{
+ SDL_PumpEvents();
+}
+
void CheckQuitEvent(void)
{
if (SDL_QuitRequested())
void CheckQuitEvent(void)
{
if (SDL_QuitRequested())