[Horus] Bitmaps now scaled to fit both dimensions and centered in desired zone

This commit is contained in:
Andre Bernet
2016-08-28 11:28:29 +02:00
parent 504592ed18
commit 30eb2baed9
2 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -376,7 +376,7 @@ bool menuRadioSdManager(event_t _event)
startx = (width - LCD_W/2) / 2;
width = LCD_W/2;
}
lcd->drawBitmap(LCD_W / 2 - 20 + LCD_W/4 - width/2, MENU_BODY_TOP + MENU_BODY_HEIGHT/2 - height/2, currentBitmap, startx, starty, width, height);
lcd->drawScaledBitmap(currentBitmap, LCD_W / 2 - 20 + LCD_W/4 - width/2, MENU_BODY_TOP + MENU_BODY_HEIGHT/2 - height/2, width, height);
}
}