diff options
Diffstat (limited to 'render.c')
-rw-r--r-- | render.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -87,6 +87,8 @@ void render(SDL_Renderer* renderer, struct level_struct *currentlevel, SDL_Textu /// Draw this tile onto the screen
//SDL_BlitSurface ( currentlevel->surf_tiles, &pixmap_crop, surf_screen, &destination );
+ // TODO: use pixmap_crop
+ // printf("surf_tile format: %s\n", SDL_GetPixelFormatName(currentlevel->surf_tiles->format->format));
SDL_UpdateTexture(surf_screen, &destination,
currentlevel->surf_tiles->pixels,
currentlevel->surf_tiles->pitch);
@@ -122,7 +124,7 @@ void render(SDL_Renderer* renderer, struct level_struct *currentlevel, SDL_Textu // Draw it onscreen
// SDL_BlitSurface ( currentlevel->surf_entities, &pixmap_crop, surf_screen, &destination );
- SDL_UpdateTexture(surf_screen, &destination,
+ SDL_UpdateTexture(surf_screen, &destination,
currentlevel->surf_entities->pixels,
currentlevel->surf_entities->pitch);
}
|