Merge branch 'splash-titlebar-rename'

This commit is contained in:
Erwin Ried 2020-05-12 16:16:58 +02:00
commit 14c17bce8f
5 changed files with 327 additions and 995 deletions

View File

@ -29,7 +29,7 @@ set(EXTRACT_CPLD_DATA ${PROJECT_SOURCE_DIR}/tools/extract_cpld_data.py)
set(MAKE_SPI_IMAGE ${PROJECT_SOURCE_DIR}/tools/make_spi_image.py)
set(MAKE_IMAGE_CHUNK ${PROJECT_SOURCE_DIR}/tools/make_image_chunk.py)
set(FIRMWARE_NAME portapack-h1-havoc)
set(FIRMWARE_NAME portapack-h1_h2-mayhem)
set(FIRMWARE_FILENAME ${FIRMWARE_NAME}.bin)
add_subdirectory(application)

View File

@ -72,10 +72,11 @@ private:
int32_t delay;
} credits_t;
// TODO: Make this dinamically centered and parse \n as the delay value so it is easy to maintain
const credits_t credits[26] = {
// 012345678901234567890123456789
{ 60, "PortaPack Mayhem", 0 },
{ 60, "PortaPack|HAVOC", 0 },
{ 4 * 8, "Version " VERSION_STRING, 16 },
{ 11 * 8, "Gurus J. Boone", 0 },
{ 18 * 8, "M. Ossmann", 16 },
{ 11 * 8, "HAVOC Furrtek", 16 },

File diff suppressed because it is too large Load Diff

View File

@ -513,7 +513,6 @@ void BMPView::focus() {
BMPView::BMPView(NavigationView& nav) {
add_children({
&text_info,
&button_done
});
@ -523,7 +522,7 @@ BMPView::BMPView(NavigationView& nav) {
}
void BMPView::paint(Painter&) {
portapack::display.drawBMP({(240 - 185) / 2, 0}, splash_bmp, false);
portapack::display.drawBMP({(240 - 230) / 2, (320 - 50) / 2 - 10}, splash_bmp, false);
}
/* NotImplementedView ****************************************************/

View File

@ -54,6 +54,8 @@ enum modal_t {
ABORT
};
//#define VERSION_STRING "v1.0.0"; // TODO: Move somewhere else
class NavigationView : public View {
public:
std::function<void(const View&)> on_view_changed { };
@ -109,7 +111,7 @@ public:
void set_title(const std::string new_value);
private:
static constexpr auto default_title = "PortaPack|Havoc";
static constexpr auto default_title = "MAYHEM v1.0.0"; // TODO: Move the version somewhere
NavigationView& nav_;