mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-12 12:08:00 +01:00
internal: Set target bitmap and reset clipping rectangle for PreDraw handler
This commit is contained in:
parent
6f03021d9e
commit
a4a9413134
1 changed files with 3 additions and 0 deletions
|
@ -66,7 +66,10 @@ SYMBOL_INTERNAL void DrawGamestates(struct Game* game) {
|
|||
}
|
||||
|
||||
if (game->_priv.params.handlers.predraw) {
|
||||
al_set_target_backbuffer(game->display);
|
||||
al_reset_clipping_rectangle();
|
||||
game->_priv.params.handlers.predraw(game);
|
||||
al_set_clipping_rectangle(game->clip_rect.x, game->clip_rect.y, game->clip_rect.w, game->clip_rect.h);
|
||||
}
|
||||
|
||||
tmp = game->_priv.gamestates;
|
||||
|
|
Loading…
Reference in a new issue