From 43691b0f6c49abdf2da7e1fb90a1228768d3e267 Mon Sep 17 00:00:00 2001 From: Thomas Ballmann Date: Sat, 5 Dec 2020 21:01:32 +0100 Subject: [PATCH] dont let the condition icon cover the location --- lib/face/faceWeather.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/face/faceWeather.cpp b/lib/face/faceWeather.cpp index afb4641..fd518ef 100644 --- a/lib/face/faceWeather.cpp +++ b/lib/face/faceWeather.cpp @@ -66,6 +66,13 @@ void render_current() { GFXcanvas1 *canvas = displayGetCanvas(); + // icon + const unsigned char *icon = getIconById(weatherData.current_icon, 256); + if (icon) + { + canvas->drawBitmap(192, 0, icon, 256, 256, GxEPD_BLACK, GxEPD_WHITE); + } + // name canvas->setFont(&FreeSansBold18pt7b); canvas->setTextSize(1); @@ -78,13 +85,6 @@ void render_current() canvas->setCursor(50, 120); canvas->println(weatherData.current_temp); - // icon - const unsigned char *icon = getIconById(weatherData.current_icon, 256); - if (icon) - { - canvas->drawBitmap(192, 0, icon, 256, 256, GxEPD_BLACK, GxEPD_WHITE); - } - // 250 height // high canvas->setTextSize(1);