[Horus] Now a fake main view
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 114 KiB |
@@ -40,10 +40,10 @@
|
|||||||
#define MENU_HEADER_HEIGHT 45
|
#define MENU_HEADER_HEIGHT 45
|
||||||
#define MENU_TITLE_TOP 48
|
#define MENU_TITLE_TOP 48
|
||||||
#define MENU_TITLE_HEIGHT 21
|
#define MENU_TITLE_HEIGHT 21
|
||||||
#define MENU_BODY_TOP 70
|
#define MENU_BODY_TOP 69 // MENU_TITLE_TOP + MENU_TITLE_HEIGHT
|
||||||
#define MENU_CONTENT_TOP 72
|
#define MENU_CONTENT_TOP 72
|
||||||
#define MENU_BODY_HEIGHT 182
|
#define MENU_BODY_HEIGHT 182
|
||||||
#define MENU_FOOTER_TOP 251
|
#define MENU_FOOTER_TOP 251 // MENU_BODY_TOP + MENU_BODY_HEIGHT
|
||||||
#define MENU_FOOTER_HEIGHT 21
|
#define MENU_FOOTER_HEIGHT 21
|
||||||
|
|
||||||
#define MENU_TITLE_LEFT 6
|
#define MENU_TITLE_LEFT 6
|
||||||
|
|||||||
@@ -282,6 +282,10 @@ void onMainViewMenu(const char *result)
|
|||||||
|
|
||||||
void displayTelemetryScreen(int index, unsigned int evt);
|
void displayTelemetryScreen(int index, unsigned int evt);
|
||||||
|
|
||||||
|
const uint16_t LBM_MAINVIEW_FLAT[] = {
|
||||||
|
#include "../../bitmaps/Horus/mainview_flat.lbm"
|
||||||
|
};
|
||||||
|
|
||||||
void menuMainView(evt_t event)
|
void menuMainView(evt_t event)
|
||||||
{
|
{
|
||||||
// clear the screen
|
// clear the screen
|
||||||
@@ -335,6 +339,8 @@ void menuMainView(evt_t event)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lcdDrawBitmap(0, 0, LBM_MAINVIEW_FLAT);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
displayMainViewIndex();
|
displayMainViewIndex();
|
||||||
|
|
||||||
@@ -350,7 +356,7 @@ void menuMainView(evt_t event)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(GVARS)
|
#if 0
|
||||||
if (s_gvar_timer > 0) {
|
if (s_gvar_timer > 0) {
|
||||||
s_gvar_timer--;
|
s_gvar_timer--;
|
||||||
displayMessageBox();
|
displayMessageBox();
|
||||||
|
|||||||
Reference in New Issue
Block a user