Mine
public c v1 · immutable/* Draw Image */temp = IMG_Load(file);SDL_Surface *draw_image(int x, int y, char *file);//void draw_image(int x, int y, char *file){ if (temp == NULL) { printf("OSGC Error: Unable to load image: %s\n", SDL_GetError()); SDL_Quit(); } image = SDL_DisplayFormat(temp); SDL_FreeSurface(temp); src.x = 0; src.y = 0; src.w = image->w; src.h = image->h; dest.x = x; dest.y = y; dest.w = image->w; dest.h = image->h; SDL_BlitSurface(image, &src, screen, &dest); SDL_FreeSurface(image);}