From e1707fcf2a5c423c36ef6f49d5836b68f20ce852 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Tue, 21 Dec 2021 19:42:49 -0500 Subject: [PATCH] Remove placeholder background color changer --- src/board.cpp | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/src/board.cpp b/src/board.cpp index 04e47f4..ccc7527 100644 --- a/src/board.cpp +++ b/src/board.cpp @@ -365,33 +365,9 @@ void board::start(){ if(i >= PANELS_LENGTH) i = 0; + //clear the screen SDL_RenderClear(_renderer); - //PLACEHOLDER, cycle color - /* - { - static uint8_t green = 0; - static bool up = true; - - SDL_SetRenderDrawColor(_renderer, BOARD_RED, - green, BOARD_BLUE, SDL_ALPHA_OPAQUE); - - SDL_RenderClear(_renderer); - - if(up){ - if(green == 254) - up = false; - green++; - } else { - if(green == 1) - up = true; - green --; - } - } - */ - //END PLACEHOLDER - - //call draw on the current panel PANELS[i]->draw();