mirror of
https://github.com/usatiuk/cardboy.git
synced 2025-10-28 23:27:49 +01:00
move peanutgb to repo
This commit is contained in:
@@ -17,7 +17,7 @@ idf_component_register(SRCS
|
||||
src/buzzer.cpp
|
||||
src/fs_helper.cpp
|
||||
PRIV_REQUIRES spi_flash esp_driver_i2c driver sdk-esp esp_timer nvs_flash littlefs
|
||||
INCLUDE_DIRS "include" "Peanut-GB"
|
||||
INCLUDE_DIRS "include"
|
||||
EMBED_FILES "roms/builtin_demo1.gb" "roms/builtin_demo2.gb")
|
||||
|
||||
littlefs_create_partition_image(littlefs ../flash_data FLASH_IN_PROJECT)
|
||||
4042
Firmware/main/include/apps/peanut_gb.h
Normal file
4042
Firmware/main/include/apps/peanut_gb.h
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
#pragma GCC optimize("Ofast")
|
||||
#include "apps/gameboy_app.hpp"
|
||||
#include "apps/peanut_gb.h"
|
||||
|
||||
#include "app_framework.hpp"
|
||||
#include "font16x8.hpp"
|
||||
@@ -7,7 +8,6 @@
|
||||
#include <disp_tools.hpp>
|
||||
#include <fs_helper.hpp>
|
||||
|
||||
#include <peanut_gb.h>
|
||||
|
||||
#include "esp_timer.h"
|
||||
|
||||
@@ -1054,8 +1054,8 @@ private:
|
||||
|
||||
if (!statusMessage.empty()) {
|
||||
const int statusWidth = font16x8::measureText(statusMessage, 1, 1);
|
||||
const int statusX = std::max(12, (framebuffer.width() - statusWidth) / 2);
|
||||
const int statusY = std::max(16, instructionY - font16x8::kGlyphHeight - 4);
|
||||
const int statusX = std::max(12, (framebuffer.width() - statusWidth) - 12);
|
||||
const int statusY = instructionY;
|
||||
font16x8::drawText(framebuffer, statusX, statusY, statusMessage, 1, true, 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user