Fix redbean date header in daemonize mode

This commit is contained in:
Justine Tunney 2021-05-02 11:11:26 -07:00
parent 1f2288be6e
commit 84001a246c
7 changed files with 51 additions and 49 deletions

View file

@ -428,6 +428,7 @@ static void OnUnzoom(long y, long x) {
}
static void OnMouseLeftDrag(long y, long x) {
int i;
if (y == save_y && x == save_x) return;
save_y = y;
save_x = x;
@ -440,7 +441,10 @@ static void OnMouseLeftDrag(long y, long x) {
if (erase) {
Unset(y, x);
} else {
Set(y, x);
for (i = 0; i < (2 << zoom); ++i) {
Set(y + (rand() % (zoom + 1)) - (rand() % (zoom + 1)),
x + (rand() % (zoom + 1)) - (rand() % (zoom + 1)));
}
}
}