mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
layout2: use macro for layoutSwipe
This commit is contained in:
parent
eebd53fd09
commit
fa02dec704
@ -38,15 +38,6 @@
|
|||||||
|
|
||||||
void *layoutLast = layoutHome;
|
void *layoutLast = layoutHome;
|
||||||
|
|
||||||
void layoutSwipe(void) {
|
|
||||||
#if DEBUG_LINK
|
|
||||||
oledClear();
|
|
||||||
#else
|
|
||||||
oledSwipeLeft();
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void layoutDialogSwipe(const BITMAP *icon, const char *btnNo, const char *btnYes, const char *desc, const char *line1, const char *line2, const char *line3, const char *line4, const char *line5, const char *line6)
|
void layoutDialogSwipe(const BITMAP *icon, const char *btnNo, const char *btnYes, const char *desc, const char *line1, const char *line2, const char *line3, const char *line4, const char *line5, const char *line6)
|
||||||
{
|
{
|
||||||
layoutLast = layoutDialogSwipe;
|
layoutLast = layoutDialogSwipe;
|
||||||
|
@ -28,7 +28,11 @@
|
|||||||
|
|
||||||
extern void *layoutLast;
|
extern void *layoutLast;
|
||||||
|
|
||||||
void layoutSwipe(void);
|
#if DEBUG_LINK
|
||||||
|
#define layoutSwipe oledClear
|
||||||
|
#else
|
||||||
|
#define layoutSwipe oledSwipeLeft
|
||||||
|
#endif
|
||||||
|
|
||||||
void layoutDialogSwipe(const BITMAP *icon, const char *btnNo, const char *btnYes, const char *desc, const char *line1, const char *line2, const char *line3, const char *line4, const char *line5, const char *line6);
|
void layoutDialogSwipe(const BITMAP *icon, const char *btnNo, const char *btnYes, const char *desc, const char *line1, const char *line2, const char *line3, const char *line4, const char *line5, const char *line6);
|
||||||
void layoutProgressSwipe(const char *desc, int permil);
|
void layoutProgressSwipe(const char *desc, int permil);
|
||||||
|
Loading…
Reference in New Issue
Block a user