From 538d2643165420941e435954190464c02bdc7030 Mon Sep 17 00:00:00 2001 From: Adrian Siekierka Date: Wed, 26 Jul 2023 22:45:47 +0200 Subject: [PATCH] uxnds 0.4.4 --- Makefile.3ds | 2 +- Makefile.blocksds | 4 ++-- source/3ds/ctr_screen.c | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile.3ds b/Makefile.3ds index 7843d98..a0f0216 100644 --- a/Makefile.3ds +++ b/Makefile.3ds @@ -47,7 +47,7 @@ INCLUDES := include source GRAPHICS := assets/3ds ROMFS := romfs/3ds GFXBUILD := $(ROMFS) -APP_TITLE := uxnds v0.4.3 +APP_TITLE := uxnds v0.4.4 ifeq ($(DEBUG),true) APP_DESCRIPTION := tiny virtual machine (debug) else diff --git a/Makefile.blocksds b/Makefile.blocksds index 92502d8..8db3e63 100644 --- a/Makefile.blocksds +++ b/Makefile.blocksds @@ -7,9 +7,9 @@ NAME := uxnds -GAME_TITLE := uxnds v0.4.3 +GAME_TITLE := uxnds v0.4.4 GAME_SUBTITLE := -GAME_AUTHOR := 08/05/2023 +GAME_AUTHOR := 26/07/2023 GAME_ICON := misc/uxn32.png #NAME := donsol diff --git a/source/3ds/ctr_screen.c b/source/3ds/ctr_screen.c index d30be09..c526394 100644 --- a/source/3ds/ctr_screen.c +++ b/source/3ds/ctr_screen.c @@ -34,8 +34,10 @@ static Uint8 blending[4][16] = { {2, 3, 1, 2, 2, 3, 1, 2, 2, 3, 1, 2, 2, 3, 1, 2}}; static inline void -screen_change(UxnCtrScreen *scr, Layer *s, int x1, int y1, int x2, int y2) +screen_change(UxnCtrScreen *scr, Layer *s, Uint16 x1, Uint16 y1, Uint16 x2, Uint16 y2) { + if(y1 > scr->height && y2 > y1) return; + if(y1 > y2) y1 = 0; if(y1 >= scr->height) s->y1 = 0; else if(y1 < s->y1) s->y1 = y1; if(y2 > scr->height) s->y2 = scr->height;