|
|
@ -88,13 +88,7 @@ int main() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SDL_RenderPresent(rend);
|
|
|
|
SDL_RenderPresent(rend);
|
|
|
|
|
|
|
|
SDL_PumpEvents();
|
|
|
|
SDL_Event e;
|
|
|
|
|
|
|
|
while (SDL_PollEvent(&e)) {
|
|
|
|
|
|
|
|
if (e.type == SDL_EVENT_QUIT) {
|
|
|
|
|
|
|
|
running = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SDL_DestroyRenderer(rend);
|
|
|
|
SDL_DestroyRenderer(rend);
|
|
|
|