Tweak to prompt pop-up updated
On my laptop the prompt was basically not coming up at all (only one animation step every few seconds), because apparently it was stuck doing "w += 0" due to how few ticks went by within the loop! :-D
This commit is contained in:
parent
7103897bc7
commit
e77e9b89d4
1 changed files with 1 additions and 1 deletions
|
|
@ -15275,7 +15275,7 @@ static int do_prompt_image_flash_snd(const char *const text,
|
|||
|
||||
/* Calculate the amount by which to move to the next animation frame */
|
||||
next_ms = SDL_GetTicks64();
|
||||
w += (next_ms - last_ms) * r_ttools.w / anim_ms;
|
||||
w += max(1, ((next_ms - last_ms) * r_ttools.w) / anim_ms);
|
||||
last_ms = next_ms;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue