add buffer parameters for menubg_src

This commit is contained in:
kub 2021-01-14 21:47:19 +01:00
parent e0bf794693
commit 68c85e2a0b
2 changed files with 15 additions and 3 deletions

10
menu.c
View file

@ -31,13 +31,21 @@
static char static_buff[64];
static int menu_error_time = 0;
char menu_error_msg[64] = { 0, };
// g_menuscreen is the current output buffer the menu is rendered to.
void *g_menuscreen_ptr;
void *g_menubg_src_ptr;
// g_menubg is the menu background and has the same w/h as g_menuscreen, but
// pp=w. It is filled on menu entry from file or from g_menubg_src if available.
void *g_menubg_ptr;
// g_menubg_src points to a buffer containing a bg image. This is usually either
// the emulator screen buffer or the host frame buffer.
void *g_menubg_src_ptr;
int g_menuscreen_w;
int g_menuscreen_h;
int g_menuscreen_pp;
int g_menubg_src_w;
int g_menubg_src_h;
int g_menubg_src_pp;
int g_autostateld_opt;

8
menu.h
View file

@ -112,12 +112,16 @@ typedef struct
extern me_bind_action me_ctrl_actions[];
extern me_bind_action emuctrl_actions[]; // platform code
extern void *g_menubg_src_ptr;
extern void *g_menubg_ptr;
extern void *g_menuscreen_ptr;
extern void *g_menubg_ptr;
extern void *g_menubg_src_ptr;
extern int g_menuscreen_w;
extern int g_menuscreen_h;
extern int g_menuscreen_pp; // pitch (in pixels)
extern int g_menubg_src_w;
extern int g_menubg_src_h;
extern int g_menubg_src_pp;
extern int g_autostateld_opt;