mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 10:20:41 +00:00
(RGUI) display core name in menu
This commit is contained in:
parent
e14a679f83
commit
3634136a3a
@ -29,7 +29,7 @@
|
|||||||
#define TERM_START_X 15
|
#define TERM_START_X 15
|
||||||
#define TERM_START_Y 27
|
#define TERM_START_Y 27
|
||||||
#define TERM_WIDTH (((RGUI_WIDTH - TERM_START_X - 15) / (FONT_WIDTH_STRIDE)))
|
#define TERM_WIDTH (((RGUI_WIDTH - TERM_START_X - 15) / (FONT_WIDTH_STRIDE)))
|
||||||
#define TERM_HEIGHT (((RGUI_HEIGHT - TERM_START_Y - 15) / (FONT_HEIGHT_STRIDE)))
|
#define TERM_HEIGHT (((RGUI_HEIGHT - TERM_START_Y - 15) / (FONT_HEIGHT_STRIDE)) - 1)
|
||||||
|
|
||||||
extern char app_dir[PATH_MAX];
|
extern char app_dir[PATH_MAX];
|
||||||
|
|
||||||
@ -290,6 +290,11 @@ static void render_text(rgui_handle_t *rgui)
|
|||||||
}
|
}
|
||||||
blit_line(rgui, TERM_START_X + 15, 15, title, true);
|
blit_line(rgui, TERM_START_X + 15, 15, title, true);
|
||||||
|
|
||||||
|
struct retro_system_info info;
|
||||||
|
retro_get_system_info(&info);
|
||||||
|
snprintf(title, sizeof(title), "CORE: %s %s", info.library_name, info.library_version);
|
||||||
|
blit_line(rgui, TERM_START_X + 15, (TERM_HEIGHT * FONT_HEIGHT_STRIDE) + TERM_START_Y + 2, title, true);
|
||||||
|
|
||||||
unsigned x = TERM_START_X;
|
unsigned x = TERM_START_X;
|
||||||
unsigned y = TERM_START_Y;
|
unsigned y = TERM_START_Y;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user