commit 1ffb60b

Devine Lu Linvega  ·  2025-04-09 00:34:56 +0000 UTC
parent 32e84f5
Force repaint on resize
1 files changed,  +4, -2
+4, -2
 1@@ -90,8 +90,10 @@ emu_resize(void)
 2 	uxn_screen.pixels = realloc(uxn_screen.pixels,
 3 		uxn_screen.width * uxn_screen.height * sizeof(Uint32) * uxn_screen.zoom * uxn_screen.zoom);
 4 	ximage = XCreateImage(display, DefaultVisual(display, 0), DefaultDepth(display, DefaultScreen(display)), ZPixmap, 0, (char *)uxn_screen.pixels, width, height, 32, 0);
 5-	if(screen_changed())
 6-		emu_repaint();
 7+	uxn_screen.x1 = uxn_screen.y1 = 0;
 8+	uxn_screen.x2 = uxn_screen.width;
 9+	uxn_screen.y2 = uxn_screen.height;
10+	emu_repaint();
11 	uxn_screen.resize = 0;
12 }
13