mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +00:00
legacy: fix wrong logic in layoutButtonNo
This commit is contained in:
parent
3664d7b37b
commit
0ceba80876
@ -1792,7 +1792,7 @@ void stellar_layoutSigningDialog(const char *line1, const char *line2,
|
||||
offset_y += line_height;
|
||||
|
||||
// Cancel button
|
||||
layoutButtonNo("Cancel", &bmp_btn_cancel);
|
||||
layoutButtonNo(_("Cancel"), &bmp_btn_cancel);
|
||||
|
||||
// Warnings (drawn centered between the buttons
|
||||
if (warning) {
|
||||
|
@ -28,9 +28,9 @@ void layoutButtonNo(const char *btnNo, const BITMAP *icon) {
|
||||
oledDrawBitmap(1, OLED_HEIGHT - 8, icon);
|
||||
icon_width = icon->width;
|
||||
}
|
||||
oledDrawString(8 + 3, OLED_HEIGHT - icon_width, btnNo, FONT_STANDARD);
|
||||
oledDrawString(3 + icon_width, OLED_HEIGHT - 8, btnNo, FONT_STANDARD);
|
||||
oledInvert(0, OLED_HEIGHT - 9,
|
||||
icon_width + oledStringWidth(btnNo, FONT_STANDARD) + 2,
|
||||
icon_width + oledStringWidth(btnNo, FONT_STANDARD) + 4,
|
||||
OLED_HEIGHT - 1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user