Lines Matching defs:updates
235 SDL_Rect updates[NBOATS];
266 updates[i].x = MIN(old_x, boatx[i]);
267 updates[i].y = boaty[i];
268 updates[i].w = boat[0]->w + SPEED;
269 updates[i].h = boat[0]->h;
271 if(updates[i].x < 0) {
272 updates[i].w += updates[i].x;
273 updates[i].x = 0;
275 if(updates[i].x + updates[i].w > SCRW)
276 updates[i].w = SCRW - updates[i].x;
331 SDL_UpdateRects(screen, NBOATS, updates);