- if(SDL_MUSTLOCK(s)) { SDL_LockSurface(s); }
- draw_dust(s);
- for(i=0; i<MAXBANGDOTS; i++) draw_dot(s, &bdot[i]);
- for(i=0; i<MAXENGINEDOTS; i++) draw_dot(s, &edot[i]);
- if(SDL_MUSTLOCK(s)) { SDL_UnlockSurface(s); }
+ if(SDL_MUSTLOCK(surf_screen)) { SDL_LockSurface(surf_screen); }
+ draw_dust();
+ for(i=0; i<MAXBANGDOTS; i++) draw_dot(&bdot[i]);
+ for(i=0; i<MAXENGINEDOTS; i++) draw_dot(&edot[i]);
+ if(SDL_MUSTLOCK(surf_screen)) { SDL_UnlockSurface(surf_screen); }