projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed using delay counter for Android
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index c41fbef27494cd40806fbd4b8567f53d801da07b..5916fdcc63176373ffb2809e43cdb216d8853311 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)
@@
-1812,7
+1812,7
@@
void StartTextInput(int x, int y, int width, int height)
if (y + height > SCREEN_KEYBOARD_POS(video.height))
{
video.shifted_up_pos = y + height - SCREEN_KEYBOARD_POS(video.height);
if (y + height > SCREEN_KEYBOARD_POS(video.height))
{
video.shifted_up_pos = y + height - SCREEN_KEYBOARD_POS(video.height);
- video.shifted_up_delay = SDL_GetTicks();
+ video.shifted_up_delay
.count
= SDL_GetTicks();
video.shifted_up = TRUE;
}
#endif
video.shifted_up = TRUE;
}
#endif
@@
-1828,7
+1828,7
@@
void StopTextInput(void)
if (video.shifted_up)
{
video.shifted_up_pos = 0;
if (video.shifted_up)
{
video.shifted_up_pos = 0;
- video.shifted_up_delay = SDL_GetTicks();
+ video.shifted_up_delay
.count
= SDL_GetTicks();
video.shifted_up = FALSE;
}
#endif
video.shifted_up = FALSE;
}
#endif