[Horus] Bitmaps now scaled to fit both dimensions and centered in desired zone
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user