Skip to content

Commit

Permalink
Fix the banner again
Browse files Browse the repository at this point in the history
  • Loading branch information
commandblockguy committed Aug 27, 2020
1 parent 9ee484e commit 8cdbf83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,8 @@ void render(level_t *level) {
profiler_start(render_tanks);
// todo: z-sorting
// restrict drawing to only the play area, to prevent the banners from being overwritten
// todo: deal with this
gfx_SetClipRegion(SCREEN_X(0), SCREEN_Y(-TILE_SIZE), SCREEN_X(LEVEL_SIZE_X * TILE_SIZE),
SCREEN_Y(LEVEL_SIZE_Y * TILE_SIZE - TILE_SIZE));
SCREEN_Y((LEVEL_SIZE_Y - 2) * TILE_SIZE));
for(uint8_t i = 0; i < level->num_tanks; i++) {
render_tank(&tanks[i]);
}
Expand Down

0 comments on commit 8cdbf83

Please sign in to comment.