summaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/render.c b/render.c
index 2e8e97d..4e5db41 100644
--- a/render.c
+++ b/render.c
@@ -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);
}