0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-12-01 18:17:25 +00:00

Fixed warnings

This commit is contained in:
neauoire 2023-10-25 15:25:32 -07:00
parent 5babd72e6a
commit 413f3a82f8

View file

@ -191,8 +191,8 @@ set_zoom(Uint8 z, int win)
static void static void
set_fullscreen(int value, int win) set_fullscreen(int value, int win)
{ {
fullscreen = value;
Uint32 flags = 0; /* windowed mode; SDL2 has no constant for this */ Uint32 flags = 0; /* windowed mode; SDL2 has no constant for this */
fullscreen = value;
if(fullscreen) { if(fullscreen) {
flags = SDL_WINDOW_FULLSCREEN_DESKTOP; flags = SDL_WINDOW_FULLSCREEN_DESKTOP;
} }
@ -487,8 +487,8 @@ emu_run(Uxn *u, char *rom)
Uint64 next_refresh = 0; Uint64 next_refresh = 0;
Uint64 frame_interval = SDL_GetPerformanceFrequency() / 60; Uint64 frame_interval = SDL_GetPerformanceFrequency() / 60;
Uint8 *vector_addr = &u->dev[0x20]; Uint8 *vector_addr = &u->dev[0x20];
window_created = 1;
Uint32 window_flags = SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI; Uint32 window_flags = SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI;
window_created = 1;
if(fullscreen) if(fullscreen)
window_flags = window_flags | SDL_WINDOW_FULLSCREEN_DESKTOP; window_flags = window_flags | SDL_WINDOW_FULLSCREEN_DESKTOP;
emu_window = SDL_CreateWindow(rom, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, (uxn_screen.width + PAD2) * zoom, (uxn_screen.height + PAD2) * zoom, window_flags); emu_window = SDL_CreateWindow(rom, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, (uxn_screen.width + PAD2) * zoom, (uxn_screen.height + PAD2) * zoom, window_flags);