uxnemu: fix two warnings on 9front build
This commit is contained in:
parent
05356e23b1
commit
784467564c
|
@ -470,7 +470,7 @@ static int
|
||||||
run(Uxn *u)
|
run(Uxn *u)
|
||||||
{
|
{
|
||||||
Uint64 next_refresh = 0;
|
Uint64 next_refresh = 0;
|
||||||
Uint64 now = SDL_GetPerformanceCounter();
|
Uint64 now;
|
||||||
Uint64 frame_interval = SDL_GetPerformanceFrequency() / 60;
|
Uint64 frame_interval = SDL_GetPerformanceFrequency() / 60;
|
||||||
for(;;) {
|
for(;;) {
|
||||||
Uint16 screen_vector;
|
Uint16 screen_vector;
|
||||||
|
@ -489,9 +489,9 @@ run(Uxn *u)
|
||||||
if(uxn_screen.x2)
|
if(uxn_screen.x2)
|
||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
if(BENCH)
|
if(BENCH) {
|
||||||
;
|
/* no delay */
|
||||||
else if(screen_vector || uxn_screen.x2) {
|
} else if(screen_vector || uxn_screen.x2) {
|
||||||
Uint64 delay_ms = (next_refresh - now) / ms_interval;
|
Uint64 delay_ms = (next_refresh - now) / ms_interval;
|
||||||
if(delay_ms > 0) SDL_Delay(delay_ms);
|
if(delay_ms > 0) SDL_Delay(delay_ms);
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in New Issue