From: Rusty Russell Date: Fri, 18 Jan 2008 20:28:11 +0000 (+1100) Subject: Now using a real projector X-Git-Url: https://git.ozlabs.org/?p=ponghero.git;a=commitdiff_plain;h=b2d2e0a475b2831604b11986ef342ba749eb4222 Now using a real projector --- diff --git a/prpong.c b/prpong.c index cd5a5a6..36b297e 100644 --- a/prpong.c +++ b/prpong.c @@ -833,12 +833,12 @@ int main(int argc, char *argv[]) if (ir->valid) { /* Give it some slack for missing one or two... */ - if (time_since_last_ir <= 3) { + if (time_since_last_ir <= 5) { struct line_segment *n = malloc(sizeof(*n)); /* Wiimote coordinates are backwards for us. */ - n->start.x = MAX_X - last_ir.pos[0]; + n->start.x = last_ir.pos[0]; n->start.y = MAX_Y - last_ir.pos[1]; - n->end.x = MAX_X - ir->pos[0]; + n->end.x = ir->pos[0]; n->end.y = MAX_Y - ir->pos[1]; n->ignore = false; timeradd(&now, &line_life, &n->expires);