From 4eb5903b11ad0b310d724c1564a23e75171896e0 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Mon, 18 Jul 2022 00:08:34 +0200 Subject: [PATCH] DrawConsole: Make sure to reset clipping rectangle before drawing --- src/internal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/internal.c b/src/internal.c index fc704c6..603315f 100644 --- a/src/internal.c +++ b/src/internal.c @@ -261,6 +261,7 @@ SYMBOL_INTERNAL void DrawConsole(struct Game* game) { ALLEGRO_TRANSFORM trans; al_identity_transform(&trans); al_use_transform(&trans); + al_reset_clipping_rectangle(); al_hold_bitmap_drawing(true); @@ -289,6 +290,7 @@ SYMBOL_INTERNAL void DrawConsole(struct Game* game) { al_hold_bitmap_drawing(false); al_use_transform(&game->_priv.projection); + al_set_clipping_rectangle(game->clip_rect.x, game->clip_rect.y, game->clip_rect.w, game->clip_rect.h); } if (game_time - game->_priv.fps_count.old_time >= 1.0) {