~rabbits/nasu

db271c4354f78817724ca3ae3a53dcc9ced66dc9 — Devine Lu Linvega 2 years ago ec52624
Tiny cleanup
1 files changed, 2 insertions(+), 2 deletions(-)

M chr6.c
M chr6.c => chr6.c +2 -2
@@ 106,7 106,7 @@ edit(Brush* b)
{
	Point p1;
	setpt(&p1, b->pos.x - PAD, b->pos.y - PAD);
	if(p1.x < 0 || p1.y < 0 || p1.x > 8 * 16 * ZOOM || p1.y > 8 * 16 * ZOOM)
	if(p1.x < 0 || p1.y < 0 || p1.x > 128 * ZOOM || p1.y > 128 * ZOOM)
		return;
	write(
	    p1.x / (8 * ZOOM),


@@ 124,7 124,7 @@ erase(Brush* b)
	int i, id;
	Point p1;
	setpt(&p1, b->pos.x - PAD, b->pos.y - PAD);
	if(p1.x < 0 || p1.y < 0 || p1.x > 8 * 16 * ZOOM || p1.y > 8 * 16 * ZOOM)
	if(p1.x < 0 || p1.y < 0 || p1.x > 128 * ZOOM || p1.y > 128 * ZOOM)
		return;
	id = (p1.x / (8 * ZOOM)) + (p1.y / (8 * ZOOM)) * 16;
	for(i = 0; i < 8; ++i) {