mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Fix textboxes fully fading out during blackout
When `blackout` is active, the screen (to simplify) stops getting drawn to. The excecption is textboxes, which draw anyway. But since the screen isn't being cleared, removed textboxes stay on screen, since that texture isn't being cleared. In the SDL_Renderer PR, I accidentally broke this behavior, so this commit fixes it. Fixes #951.
This commit is contained in:
parent
397d7f21b4
commit
371404f393
1 changed files with 2 additions and 1 deletions
|
@ -1967,11 +1967,12 @@ void gamerender(void)
|
|||
graphics.cutscenebars();
|
||||
graphics.drawfade();
|
||||
|
||||
graphics.drawgui();
|
||||
|
||||
graphics.set_render_target(graphics.gameTexture);
|
||||
|
||||
graphics.copy_texture(graphics.gameplayTexture, NULL, NULL);
|
||||
|
||||
graphics.drawgui();
|
||||
if (graphics.flipmode)
|
||||
{
|
||||
if (game.advancetext) font::print(PR_CEN | PR_BOR, -1, 228, loc::gettext("- Press ACTION to advance text -"), 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2));
|
||||
|
|
Loading…
Reference in a new issue