Make lcd.clear() color aware on color screens (#4504)

* Make lcd.clear() color aware on color screens

* Compilation fix
This commit is contained in:
3djc
2017-02-26 11:46:23 +01:00
committed by Bertrand Songis
parent 86d897b23f
commit 1910af51b6
2 changed files with 11 additions and 5 deletions
-2
View File
@@ -108,7 +108,6 @@ end
-- Redraw the current page
local function redrawFieldsPage(event)
lcd.clear()
lcd.drawFilledRectangle(0, 0, LCD_W, LCD_H, TEXT_BGCOLOR)
drawScreenTitle("S6R", page, #pages)
if refreshIndex < #fields then
@@ -276,7 +275,6 @@ local function runCalibrationPage(event)
refreshIndex = 0
end
lcd.clear()
lcd.drawFilledRectangle(0, 0, LCD_W, LCD_H, TEXT_BGCOLOR)
drawScreenTitle("S6R", page, #pages)
if(calibrationStep < 6) then
local position = calibrationPositions[1 + calibrationStep]