Remove placeholder background color changer
This commit is contained in:
parent
5d2a3c8f94
commit
e1707fcf2a
@ -365,33 +365,9 @@ void board::start(){
|
|||||||
if(i >= PANELS_LENGTH)
|
if(i >= PANELS_LENGTH)
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
||||||
|
//clear the screen
|
||||||
SDL_RenderClear(_renderer);
|
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
|
//call draw on the current panel
|
||||||
PANELS[i]->draw();
|
PANELS[i]->draw();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user