mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-24 19:40:28 +00:00
Fix redbean date header in daemonize mode
This commit is contained in:
parent
1f2288be6e
commit
84001a246c
7 changed files with 51 additions and 49 deletions
|
@ -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)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue