summary refs log tree commit diff stats
path: root/src/renderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer.cpp')
-rw-r--r--src/renderer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/renderer.cpp b/src/renderer.cpp index b24ddbf..b6a9b4a 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp
@@ -396,6 +396,12 @@ void Renderer::renderGame(
396 396
397 SDL_RenderCopy(ren_.get(), canvas.get(), &zoomRect, nullptr); 397 SDL_RenderCopy(ren_.get(), canvas.get(), &zoomRect, nullptr);
398 398
399 if (game.losing == LoseState::NewGame) {
400 SDL_SetRenderDrawBlendMode(ren_.get(), SDL_BLENDMODE_BLEND);
401 SDL_SetRenderDrawColor(ren_.get(), 0, 0, 0, game.initialFade.getProgress(255, 0));
402 SDL_RenderFillRect(ren_.get(), nullptr);
403 }
404
399 texture_ptr overlays( 405 texture_ptr overlays(
400 SDL_CreateTexture( 406 SDL_CreateTexture(
401 ren_.get(), 407 ren_.get(),