Browse code

Fixed warnings

neauoire authored on 25/10/2023 22:25:32
Showing 1 changed files
... ...
@@ -191,8 +191,8 @@ set_zoom(Uint8 z, int win)
191 191
 static void
192 192
 set_fullscreen(int value, int win)
193 193
 {
194
-	fullscreen = value;
195 194
 	Uint32 flags = 0; /* windowed mode; SDL2 has no constant for this */
195
+	fullscreen = value;
196 196
 	if(fullscreen) {
197 197
 		flags = SDL_WINDOW_FULLSCREEN_DESKTOP;
198 198
 	}
... ...
@@ -487,8 +487,8 @@ emu_run(Uxn *u, char *rom)
487 487
 	Uint64 next_refresh = 0;
488 488
 	Uint64 frame_interval = SDL_GetPerformanceFrequency() / 60;
489 489
 	Uint8 *vector_addr = &u->dev[0x20];
490
-	window_created = 1;
491 490
 	Uint32 window_flags = SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI;
491
+	window_created = 1;
492 492
 	if(fullscreen)
493 493
 		window_flags = window_flags | SDL_WINDOW_FULLSCREEN_DESKTOP;
494 494
 	emu_window = SDL_CreateWindow(rom, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, (uxn_screen.width + PAD2) * zoom, (uxn_screen.height + PAD2) * zoom, window_flags);