diff --git a/radio/src/gui/480x272/radio_sdmanager.cpp b/radio/src/gui/480x272/radio_sdmanager.cpp index ae0c0b72f..a66a9b4f6 100644 --- a/radio/src/gui/480x272/radio_sdmanager.cpp +++ b/radio/src/gui/480x272/radio_sdmanager.cpp @@ -366,14 +366,10 @@ bool menuRadioSdManager(event_t _event) if (currentBitmap) { uint16_t height = currentBitmap->getHeight(); uint16_t width = currentBitmap->getWidth(); - uint16_t startx = 0; - uint16_t starty = 0; if (height > MENU_BODY_HEIGHT-10) { - starty = (height - MENU_BODY_HEIGHT - 10) / 2; height = MENU_BODY_HEIGHT - 10; } if (width > LCD_W/2) { - startx = (width - LCD_W/2) / 2; width = LCD_W/2; } lcd->drawScaledBitmap(currentBitmap, LCD_W / 2 - 20 + LCD_W/4 - width/2, MENU_BODY_TOP + MENU_BODY_HEIGHT/2 - height/2, width, height); diff --git a/radio/src/targets/simu/opentxsimulator.cpp b/radio/src/targets/simu/opentxsimulator.cpp index c0dbbe108..380ceb14a 100644 --- a/radio/src/targets/simu/opentxsimulator.cpp +++ b/radio/src/targets/simu/opentxsimulator.cpp @@ -99,8 +99,9 @@ void OpenTxSimulator::start(QByteArray & ee, bool tests) void OpenTxSimulator::start(const char * filename, bool tests) { #if defined(ROTARY_ENCODER_NAVIGATION) - for (int i=0; i