shithub: riscv

Download patch

ref: d51d54442e9d28c95b59b0e633b4b4c2755c3240
parent: bea6dcd122455f77fa98f9f6c149ea302b6a8af2
author: aiju <devnull@localhost>
date: Mon Nov 27 15:34:48 EST 2017

games/blit: update screen when display address changes (thanks aap)

--- a/sys/src/games/blit/mem.c
+++ b/sys/src/games/blit/mem.c
@@ -161,7 +161,7 @@
 	case 01400012: uarttxbuf = (uchar) v; return;
 	case 01400024: return; /* mouse: purpose unknown */
 	case 01400026: return; /* mouse: purpose unknown */
-	case 01400030: daddr = ((daddr >> 2) & ~m | v & m) << 2; return;
+	case 01400030: daddr = ((daddr >> 2) & ~m | v & m) << 2; updated = Rect(0, 0, SX, SY); return;
 	case 01400040: dstat = dstat & ~m | v & m; invert = -(dstat & 1); updated = Rect(0, 0, SX, SY); return;
 	case 01400056: /* sound; exact function unknown */ return;
 	case 01400060: kbdctrl = v; return;