shithub: riscv

Download patch

ref: c8a71691b4a6c979673884b2a9bdef3e805c4e31
parent: d263134394105c35eefe3b115b4acf5941d8e899
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Aug 17 20:03:14 EDT 2018

vncs: fix mistake "screen" vs "gscreen", thanks eekee

--- a/sys/src/cmd/vnc/vncs.c
+++ b/sys/src/cmd/vnc/vncs.c
@@ -571,7 +571,7 @@
 	if(!shared)
 		killclients(v);
 
-	v->dim = rectsubpt(screen->r, screen->r.min);
+	v->dim = rectsubpt(gscreen->r, gscreen->r.min);
 	vncwrpoint(v, v->dim.max);
 	if(verbose)
 		fprint(2, "%V: send screen size %R\n", v, v->dim);