From 97495fa2aad0344423ac7394e5a4d4355f3b592e Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Tue, 27 Nov 2018 03:08:21 +0100 Subject: [PATCH] require the compositor to clear the screen by itself --- src/internal.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/internal.c b/src/internal.c index 46f96e5..c5adf3c 100644 --- a/src/internal.c +++ b/src/internal.c @@ -23,7 +23,7 @@ SYMBOL_INTERNAL void SimpleCompositor(struct Game* game, struct Gamestate* gamestates) { struct Gamestate* tmp = gamestates; - al_clear_to_color(al_map_rgb(0, 0, 0)); + ClearToColor(game, al_map_rgb(0, 0, 0)); while (tmp) { if ((tmp->loaded) && (tmp->started)) { al_draw_bitmap(tmp->fb, game->_priv.clip_rect.x, game->_priv.clip_rect.y, 0); @@ -69,9 +69,6 @@ SYMBOL_INTERNAL void DrawGamestates(struct Game* game) { } al_set_target_backbuffer(game->display); - if (game->handlers.compositor) { - ClearScreen(game); - } ALLEGRO_TRANSFORM t; // restore full resolution access to the whole screen