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)
|
||||
{
|
||||
Uint64 next_refresh = 0;
|
||||
Uint64 now = SDL_GetPerformanceCounter();
|
||||
Uint64 now;
|
||||
Uint64 frame_interval = SDL_GetPerformanceFrequency() / 60;
|
||||
for(;;) {
|
||||
Uint16 screen_vector;
|
||||
|
@ -489,9 +489,9 @@ run(Uxn *u)
|
|||
if(uxn_screen.x2)
|
||||
redraw();
|
||||
}
|
||||
if(BENCH)
|
||||
;
|
||||
else if(screen_vector || uxn_screen.x2) {
|
||||
if(BENCH) {
|
||||
/* no delay */
|
||||
} else if(screen_vector || uxn_screen.x2) {
|
||||
Uint64 delay_ms = (next_refresh - now) / ms_interval;
|
||||
if(delay_ms > 0) SDL_Delay(delay_ms);
|
||||
} else
|
||||
|
|
Loading…
Reference in New Issue