mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Draw settings icons
This commit is contained in:
@@ -185,6 +185,8 @@
|
||||
0x0f, 0x07, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xe0, 0xf8, 0xff, 0x3f, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x07,
|
||||
0x0f, 0x0e, 0x1e, 0x1c, 0x1c, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x1c, 0x1c, 0x1e, 0x0e, 0x0f, 0x07, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
|
||||
#define SETTINGS_ICON_WIDTH 21
|
||||
#define SETTINGS_ICON_HEIGHT 32
|
||||
/*
|
||||
* 21x32 icons
|
||||
* 84 * 3 = Frame size * Frame count
|
||||
@@ -413,6 +415,8 @@
|
||||
0x00, 0xc0, 0x30, 0x08, 0x04, 0x04, 0x02, 0x82, 0xc2, 0xe2, 0x74, 0x24, 0x08, 0x30, 0xc0, 0x00,
|
||||
0x00, 0x03, 0x0c, 0x10, 0x24, 0x2e, 0x47, 0x43, 0x41, 0x40, 0x20, 0x20, 0x10, 0x0c, 0x03, 0x00};
|
||||
|
||||
#define SETTINGS_ICON_WIDTH 16
|
||||
#define SETTINGS_ICON_HEIGHT 16
|
||||
/*
|
||||
* 16x16 icons
|
||||
* 32 * 3 = Frame size * Frame count
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "settingsGUI.hpp"
|
||||
#include "Buttons.hpp"
|
||||
#include "Font.h"
|
||||
#include "ScrollMessage.hpp"
|
||||
#include "TipThermoModel.h"
|
||||
#include "Translation.h"
|
||||
@@ -1017,7 +1018,8 @@ static void displayMenu(size_t index) {
|
||||
// Draw symbol
|
||||
// 16 pixel wide image
|
||||
// less 2 pixel wide scrolling indicator
|
||||
OLED::drawArea(OLED_WIDTH - 16 - 2, 0, 16, 16, (&SettingsMenuIcons[index][(16 * 2) * currentFrame]));
|
||||
|
||||
OLED::drawArea(OLED_WIDTH - SETTINGS_ICON_WIDTH - 2, 0, SETTINGS_ICON_WIDTH, SETTINGS_ICON_HEIGHT, (&SettingsMenuIcons[index][(SETTINGS_ICON_WIDTH * (SETTINGS_ICON_HEIGHT / 8)) * currentFrame]));
|
||||
}
|
||||
|
||||
#if defined(POW_DC) || defined(POW_QC)
|
||||
|
||||
Reference in New Issue
Block a user