legacy: fix wrong logic in layoutButtonNo

pull/830/head
Pavol Rusnak 4 years ago
parent 3664d7b37b
commit 0ceba80876
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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…
Cancel
Save