From 2491e639aaeb61755023c0232c7f4c6989d49bd5 Mon Sep 17 00:00:00 2001 From: Scott Allen Date: Mon, 20 Jul 2020 17:32:04 -0400 Subject: [PATCH] Fix a minor visual glitch in ArduBreakout Submitted by @uXeBoy (Dan O'Shea). The game screen was displayed very briefly after entering a high score, before the title screen is displayed. --- examples/ArduBreakout/ArduBreakout.ino | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/ArduBreakout/ArduBreakout.ino b/examples/ArduBreakout/ArduBreakout.ino index 987926a..d152180 100644 --- a/examples/ArduBreakout/ArduBreakout.ino +++ b/examples/ArduBreakout/ArduBreakout.ino @@ -111,9 +111,9 @@ void loop() //Selects Font //Draws the new level level = 1; + initialDraw=true; newLevel(); score = 0; - initialDraw=true; } if (lives>0) @@ -432,7 +432,14 @@ void newLevel() } } - arduboy.display(); + if (!initialDraw) + { + arduboy.clear(); + } + else + { + arduboy.display(); + } } //Used to delay images while reading button input