SDL_GetTicks() => GFX2_GetTicks()

Signed-off-by: Thomas Bernard <miniupnp@free.fr>
This commit is contained in:
Thomas Bernard
2018-05-28 12:31:42 +02:00
parent a6c948b27e
commit fb51c1bb1c
12 changed files with 80 additions and 49 deletions

View File

@@ -1111,13 +1111,13 @@ void Fill_general(byte fill_color)
//////////////////////////////////////////////////////////////////////////////
// Data used by ::Init_permanent_draw() and ::Pixel_figure_permanent()
static Uint32 Permanent_draw_next_refresh=0;
static dword Permanent_draw_next_refresh=0;
static int Permanent_draw_count=0;
void Init_permanent_draw(void)
{
Permanent_draw_count = 0;
Permanent_draw_next_refresh = SDL_GetTicks() + 100;
Permanent_draw_next_refresh = GFX2_GetTicks() + 100;
}
// Affichage d'un point de façon définitive (utilisation du pinceau)
@@ -1129,7 +1129,7 @@ void Fill_general(byte fill_color)
// Check every 8 pixels
if (! (Permanent_draw_count&7))
{
Uint32 now = SDL_GetTicks();
dword now = GFX2_GetTicks();
SDL_PumpEvents();
if (now>= Permanent_draw_next_refresh)
{