uxn

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

commit f9de13652c5cb0983f673c90368376a288448d50
parent d0a521745a1538c57022c497eaec5994c6264291
Author: neauoire <aliceffekt@gmail.com>
Date:   Thu,  9 Nov 2023 14:45:51 -0800

Redraw on resize

Diffstat:
Mprojects/examples/devices/mouse.tal | 6+++---
Msrc/devices/screen.c | 1+
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/projects/examples/devices/mouse.tal b/projects/examples/devices/mouse.tal @@ -15,9 +15,9 @@ @on-reset ( -> ) ( | theme ) - #68af .System/r DEO2 - #79bf .System/g DEO2 - #8ace .System/b DEO2 + #48af .System/r DEO2 + #59bf .System/g DEO2 + #6ace .System/b DEO2 ( | vectors ) ;on-mouse .Mouse/vector DEO2 ;on-frame .Screen/vector DEO2 diff --git a/src/devices/screen.c b/src/devices/screen.c @@ -156,6 +156,7 @@ screen_resize(Uint16 width, Uint16 height) screen_fill(uxn_screen.bg, 0, 0, width, height, 0); screen_fill(uxn_screen.fg, 0, 0, width, height, 0); emu_resize(width, height); + screen_change(0, 0, width, height); } void