refactor(Format code): Improve readability and structure
This commit is contained in:
@@ -151,7 +151,8 @@ void DisplayDriverGFX::render(const ScreenState& state) {
|
||||
return;
|
||||
|
||||
// Check if we need full redraw
|
||||
if(state.screen != _lastScreen || (state.screen == ScreenID::BOOT && state.bootStage != _lastBootStage)) {
|
||||
if(state.screen != _lastScreen
|
||||
|| (state.screen == ScreenID::BOOT && state.bootStage != _lastBootStage)) {
|
||||
_needsRedraw = true;
|
||||
_lastScreen = state.screen;
|
||||
_lastBootStage = state.bootStage;
|
||||
@@ -284,7 +285,7 @@ void DisplayDriverGFX::drawDashboard(const ScreenState& state) {
|
||||
// Tile label
|
||||
_gfx->setTextColor(0xFFFF);
|
||||
_gfx->setTextSize(2);
|
||||
_gfx->setCursor(x + w/2 - 10, y + h/2 - 10);
|
||||
_gfx->setCursor(x + w / 2 - 10, y + h / 2 - 10);
|
||||
_gfx->print(tileLabels[i]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user