projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added delay counter data type and adjusted related functions
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index c41fbef27494cd40806fbd4b8567f53d801da07b..83bbe67a6c04aab4f81805b3f7fb809619eded40 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-567,14
+567,14
@@
void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
video.window_scaling_available = WINDOW_SCALING_STATUS;
video.frame_counter = 0;
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
.count
= 0;
+ video.frame_delay
.
value = GAME_FRAME_DELAY;
video.shifted_up = FALSE;
video.shifted_up_pos = 0;
video.shifted_up_pos_last = 0;
video.shifted_up = FALSE;
video.shifted_up_pos = 0;
video.shifted_up_pos_last = 0;
- video.shifted_up_delay = 0;
- video.shifted_up_delay
_
value = ONE_SECOND_DELAY / 4;
+ video.shifted_up_delay
.count
= 0;
+ video.shifted_up_delay
.
value = ONE_SECOND_DELAY / 4;
SDLInitVideoBuffer(fullscreen);
SDLInitVideoBuffer(fullscreen);
@@
-1112,12
+1112,12
@@
boolean SetVideoMode(boolean fullscreen)
void SetVideoFrameDelay(unsigned int frame_delay_value)
{
void SetVideoFrameDelay(unsigned int frame_delay_value)
{
- video.frame_delay
_
value = frame_delay_value;
+ video.frame_delay
.
value = frame_delay_value;
}
unsigned int GetVideoFrameDelay(void)
{
}
unsigned int GetVideoFrameDelay(void)
{
- return video.frame_delay
_
value;
+ return video.frame_delay
.
value;
}
boolean ChangeVideoModeIfNeeded(boolean fullscreen)
}
boolean ChangeVideoModeIfNeeded(boolean fullscreen)