1
0
Fork 0
forked from len0rd/rockbox

rgnano: UI simulator support

Change-Id: Id488d16e01ef49a9d1b57641bc1c22ed2fef4931
This commit is contained in:
Hairo R. Carela 2025-08-04 19:52:01 -04:00 committed by Solomon Peachy
parent b52bf1bf65
commit 7b0f408c71
7 changed files with 102 additions and 3 deletions

View file

@ -74,7 +74,7 @@ target/hosted/sdl/lcd-bitmap.c
target/hosted/sdl/lcd-remote-bitmap.c
#endif
target/hosted/sdl/lcd-sdl.c
#ifndef RG_NANO
#if !defined(RG_NANO) || defined(SIMULATOR)
target/hosted/sdl/window-sdl.c
#endif
target/hosted/sdl/system-sdl.c
@ -226,7 +226,7 @@ target/hosted/samsungypr/ypr1/wmcodec-ypr1.c
target/hosted/maemo/maemo-thread.c
#endif
#ifdef RG_NANO
#if defined(RG_NANO) && !defined(SIMULATOR)
target/hosted/sysfs.c
target/hosted/power-linux.c
target/hosted/backlight-unix.c

View file

@ -3,8 +3,11 @@
*/
/* We don't run on hardware directly */
#ifndef SIMULATOR
#define CONFIG_PLATFORM (PLATFORM_HOSTED)
#define PIVOT_ROOT "/mnt"
#endif
#define HAVE_FPU
/* For Rolo and boot loader */
@ -12,7 +15,9 @@
#define MODEL_NAME "RG Nano"
#ifndef SIMULATOR
#define USB_NONE
#endif
/* define this if you have a colour LCD */
#define HAVE_LCD_COLOR

View file

@ -536,6 +536,13 @@
#define UI_LCD_POSX 46
#define UI_LCD_POSY 61
#elif defined(RG_NANO)
#define UI_TITLE "Anbernic RG Nano"
#define UI_WIDTH 370
#define UI_HEIGHT 604
#define UI_LCD_POSX 64
#define UI_LCD_POSY 78
#elif defined(SIMULATOR)
#error no UI defines