mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
require the compositor to clear the screen by itself
This commit is contained in:
parent
48189e7715
commit
97495fa2aa
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue