From 7a459abd5659b3d8df640a4ca5bddf751c45118c Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 21 Jul 2020 22:37:49 -0400 Subject: [PATCH] tetris: clear screen in case background isn't available --- src/tetris/background.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tetris/background.h b/src/tetris/background.h index 852c47c49..8154ac883 100644 --- a/src/tetris/background.h +++ b/src/tetris/background.h @@ -8,6 +8,7 @@ void DrawBackground(const std::string& s) { // drawn to the standard plane } void DrawBoard() { // draw all fixed components of the game + stdplane_->erase(); try{ DrawBackground(BackgroundFile); }catch(...){