From dff11c296276a8d4efe0924431830e0b436ab6fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Fri, 17 Sep 2021 21:42:38 +0200 Subject: [PATCH 1/2] gitignore roms --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 64230d5..b748252 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ *snarf *theme + +*.rom From e9765337f72716cdd52ff7c882173e17e90153e3 Mon Sep 17 00:00:00 2001 From: Andrew Alderwick Date: Sat, 18 Sep 2021 00:00:28 +0100 Subject: [PATCH 2/2] Initialized border color to black --- src/uxnemu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/uxnemu.c b/src/uxnemu.c index 9b0a85f..6f18188 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -187,6 +187,7 @@ quit(void) static int init(void) { + int i; SDL_AudioSpec as; SDL_zero(as); as.freq = SAMPLE_FREQUENCY; @@ -218,6 +219,9 @@ init(void) return error("sdl_texture", SDL_GetError()); if(!(ppu_screen = malloc(ppu.width * ppu.height * sizeof(Uint32)))) return 0; + for(i = ppu.width + ppu.height + PAD * 4 - 1; i >= 0; --i) + ppu_screen[i] = 0; + SDL_UpdateTexture(gTexture, NULL, ppu_screen, sizeof(Uint32)); SDL_StartTextInput(); SDL_ShowCursor(SDL_DISABLE); gRect.x = PAD;