ref: 20aa3af767e567d9785b6d64fef6bc48c4680a3c
parent: e001e5d0e493ee8251134bd72ffc0a16e06c1fe4
author: qwx <qwx@sciops.net>
date: Wed Jan 15 20:21:18 EST 2025
doom-mousegrab: update
--- a/doom-mousegrab
+++ b/doom-mousegrab
@@ -9,9 +9,9 @@
event is larger. Dx(screen->r)/4 is sufficient for the terminals i have tested
this on.
-diff -r 0a3cf47fce65 sys/src/games/doom/i_video.c
---- a/sys/src/games/doom/i_video.c Mon Jun 27 00:36:54 2016 +0200
-+++ b/sys/src/games/doom/i_video.c Thu Jun 30 17:51:32 2016 +0300
+diff d5938c597328adb8abb8785b4ac820ca0f094b6b uncommitted
+--- a/sys/src/games/doom/i_video.c
++++ b/sys/src/games/doom/i_video.c
@@ -44,7 +44,7 @@
draw(screen, screen->r, display->black, nil, ZP);
@@ -19,9 +19,9 @@
- grabout = insetrect(screen->r, Dx(screen->r)/8);
+ grabout = insetrect(screen->r, Dx(screen->r)/4);
- if((pid = rfork(RFPROC|RFMEM)) == 0){
- kbdproc();
-@@ -102,7 +102,7 @@
+ kbdpid = proccreate(kbdproc, nil, 4096);
+ mousepid = proccreate(mouseproc, nil, 4096);
+@@ -152,7 +152,7 @@
draw(screen, screen->r, display->black, nil, ZP);
center = addpt(screen->r.min, Pt(Dx(screen->r)/2, Dy(screen->r)/2));
@@ -29,4 +29,4 @@
+ grabout = insetrect(screen->r, Dx(screen->r)/4);
}
- scale = Dx(screen->r)/SCREENWIDTH;
+ if(conv == nil){