From cd8732c24f6c73166fcc330178e07d817810706c Mon Sep 17 00:00:00 2001 From: GullCode Date: Fri, 5 Feb 2021 23:08:54 +0100 Subject: [PATCH] Direct casting to int instead of new var --- firmware/application/apps/ui_looking_glass_app.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/application/apps/ui_looking_glass_app.cpp b/firmware/application/apps/ui_looking_glass_app.cpp index 73ff1428..1f478fb3 100644 --- a/firmware/application/apps/ui_looking_glass_app.cpp +++ b/firmware/application/apps/ui_looking_glass_app.cpp @@ -164,9 +164,9 @@ void GlassView::PlotMarker(rf::Frequency fpos) pos = pos / marker_pixel_step; //Real pixel portapack::display.fill_rectangle({0, 100, 240, 8}, Color::black()); //Clear old marker and whole marker rectangle btw - portapack::display.fill_rectangle({pos - 2, 100, 5, 3}, Color::red()); //Red marker middle - portapack::display.fill_rectangle({pos - 1, 103, 3, 3}, Color::red()); //Red marker middle - portapack::display.fill_rectangle({pos, 106, 1, 2}, Color::red()); //Red marker middle + portapack::display.fill_rectangle({(int16_t)pos - 2, 100, 5, 3}, Color::red()); //Red marker middle + portapack::display.fill_rectangle({(int16_t)pos - 1, 103, 3, 3}, Color::red()); //Red marker middle + portapack::display.fill_rectangle({(int16_t)pos, 106, 1, 2}, Color::red()); //Red marker middle } GlassView::GlassView(