ref: 96c7b97ba7811a519bf0a3226b36945481280db9
parent: 155c9ac47e58ae64f04ff13094e4e79a58d69e7e
author: qwx <qwx@sciops.net>
date: Sun Apr 30 01:49:26 EDT 2023
draw: permit update while drawing no reason not to anymore
--- a/dat.h
+++ b/dat.h
@@ -27,7 +27,6 @@
extern vlong latchedpos;
extern usize totalsz;
extern int treadsoftly;
-extern int viewdone;
extern QLock lsync;
--- a/draw.c
+++ b/draw.c
@@ -7,7 +7,6 @@
QLock lsync;
int debugdraw;
-int viewdone;
vlong latchedpos;
enum{
@@ -168,7 +167,6 @@
if(x % 320 == 0)
update();
}
- viewdone = 1;
update();
qunlock(&lsync);
}
@@ -210,8 +208,6 @@
int x;
usize p;
- if(!viewdone)
- return;
p = dot.pos;
lockdisplay(display);
drawview();
@@ -381,7 +377,6 @@
viewe = views + span;
if(all)
resetdraw();
- viewdone = 0;
unlockdisplay(display);
nbsendul(drawc, 1);
}
--- a/pplay.c
+++ b/pplay.c
@@ -39,8 +39,6 @@
}
nerr = 0;
advance(&dot, n);
- if(viewdone)
- update();
yield();
}
}