uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 7cc77a47f40f13303f71b263cd0f60c4a2d6fb52
parent b57554a0989c750db4746202d9db30344d906435
Author: neauoire <aliceffekt@gmail.com>
Date:   Wed, 25 Oct 2023 11:24:37 -0400

Formatted

Diffstat:
Msrc/uxncli.c | 5++++-
Msrc/uxnemu.c | 8++++----
2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/uxncli.c b/src/uxncli.c @@ -45,7 +45,10 @@ emu_run(Uxn *u) { while(!u->dev[0x0f]) { int c = fgetc(stdin); - if(c == EOF) { console_input(u, 0x00, CONSOLE_END); break; } + if(c == EOF) { + console_input(u, 0x00, CONSOLE_END); + break; + } console_input(u, (Uint8)c, CONSOLE_STD); } } diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -196,8 +196,8 @@ set_fullscreen(int new_fullscreen, int win) if(fullscreen) { flags = SDL_WINDOW_FULLSCREEN_DESKTOP; } - if(win) - SDL_SetWindowFullscreen(emu_window, flags); + if(win) + SDL_SetWindowFullscreen(emu_window, flags); } /* emulator primitives */ @@ -471,7 +471,7 @@ emu_run(Uxn *u, char *rom) Uint8 *vector_addr = &u->dev[0x20]; window_created = 1; Uint32 window_flags = SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI; - if (fullscreen) + if(fullscreen) 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); if(emu_window == NULL) @@ -543,7 +543,7 @@ main(int argc, char **argv) /* Read flag. Right now, there can be only one. */ if(argv[i][0] == '-') { if(argv[i][1] == 'v') - return system_version("Uxnemu - Graphical Varvara Emulator", "2 Sep 2023"); + return system_version("Uxnemu - Graphical Varvara Emulator", "25 Oct 2023"); if(argv[i][1] == '-') i++; if(strcmp(argv[i], "-2x") == 0 || strcmp(argv[i], "-3x") == 0)