More non C89 compliant comments

This commit is contained in:
Gabriel Jacobo
2013-08-20 20:34:40 -03:00
parent 63fe3a7753
commit 552b04c58a
28 changed files with 252 additions and 248 deletions

View File

@@ -29,11 +29,11 @@ typedef struct LoadedPicture {
void render(SDL_Renderer *renderer,SDL_Texture *texture,SDL_Rect texture_dimensions)
{
//Clear render-target to blue.
/*Clear render-target to blue.*/
SDL_SetRenderDrawColor(renderer,0x00,0x00,0xff,0xff);
SDL_RenderClear(renderer);
//Render the texture.
/*Render the texture.*/
SDL_RenderCopy(renderer,texture,&texture_dimensions,&texture_dimensions);
SDL_RenderPresent(renderer);
@@ -188,17 +188,17 @@ int main(int argc,char** argv)
next_time += TICK_INTERVAL;
}
//Free the textures.
/*Free the textures.*/
for(i=0;i<num_pictures;i++)
SDL_DestroyTexture(pictures[i].texture);
SDL_DestroyRenderer(renderer);
//Destroy the window.
/*Destroy the window.*/
SDL_DestroyWindow(window);
//Free the original surfaces backing the textures.
/*Free the original surfaces backing the textures.*/
for(i=0;i<num_pictures;i++)
SDL_FreeSurface(pictures[i].surface);
SDL_free(pictures);
//Call SDL_VideoQuit() before quitting.
/*Call SDL_VideoQuit() before quitting.*/
SDL_VideoQuit();
return 0;