shithub: drawterm

Download patch

ref: fee6fddeb6c78274abc9b2cffc9ce07d336ea8a1
parent: bc5528aa9eefa146f3f08a0bcba8c2a0a6b41271
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Nov 25 11:56:22 EST 2017

screen: do mouseresize() from devdraw instead of the resizeproc

--- a/kern/devdraw.c	Sat Nov 25 11:55:39 2017
+++ b/kern/devdraw.c	Sat Nov 25 11:56:22 2017
@@ -966,6 +966,7 @@
 		return 0;
 	screenimage = screendimage->image;
 // iprint("initscreenimage %p %p\n", screendimage, screenimage);
+	mouseresize();
 	return 1;
 }
 
--- a/kern/term.c	Sat Nov 25 11:55:39 2017
+++ b/kern/term.c	Sat Nov 25 11:56:22 2017
@@ -119,8 +119,6 @@
 		screenwin();
 		deletescreenimage();
 		resetscreenimage();
-		mouseresize();
-
 		osmsleep(1000);
 	}
 }