1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 15:28:10 +00:00

legacy: fix wrong logic in layoutButtonNo

This commit is contained in:
Pavol Rusnak 2020-02-04 16:37:20 +00:00
parent 3664d7b37b
commit 0ceba80876
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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);
}