X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=prpong.c;h=660fc8ae8a60402800f2664301aedb9a2df23cca;hb=4b884e9e3bff9f777f705d364627ce49ff4cedd6;hp=da584f99ef92560d229ec2d462da50dbcdc89f9e;hpb=c8bec7224a7fa4403a570e0f690f09496e815f97;p=ponghero.git diff --git a/prpong.c b/prpong.c index da584f9..660fc8a 100644 --- a/prpong.c +++ b/prpong.c @@ -716,6 +716,8 @@ static void calibrate(SDL_Surface *screen, SDL_UpdateRect(screen, 0, 0, 0, 0); SDL_FreeSurface(img); + SDL_Delay(500); + /* Must see it for a full half second. */ while (count < 20) { SDL_Event event; @@ -1283,7 +1285,7 @@ int main(int argc, char *argv[]) if (!same_side(&ball, state.ir_src[i].pos[0])) continue; if (!ir->valid || state.ir_src[i].size > ir->size) - ir = &state.ir_src[0]; + ir = &state.ir_src[i]; } if (ir->valid) {