(menu_display.c) Refactors/cleanups

This commit is contained in:
twinaphex 2015-09-25 21:41:24 +02:00
parent 314dbf44e8
commit 4b69554a92
2 changed files with 10 additions and 12 deletions

@ -22,6 +22,15 @@
#include "../gfx/video_context_driver.h"
#include "../gfx/video_thread_wrapper.h"
typedef struct menu_framebuf
{
uint16_t *data;
unsigned width;
unsigned height;
size_t pitch;
bool dirty;
} menu_framebuf_t;
static menu_framebuf_t frame_buf_state;
menu_display_t *menu_display_get_ptr(void)
@ -32,7 +41,7 @@ menu_display_t *menu_display_get_ptr(void)
return &menu->display;
}
menu_framebuf_t *menu_display_fb_get_ptr(void)
static menu_framebuf_t *menu_display_fb_get_ptr(void)
{
return &frame_buf_state;
}

@ -48,15 +48,6 @@ enum menu_display_ctl_state
MENU_DISPLAY_CTL_SET_FB_PITCH
};
typedef struct menu_framebuf
{
uint16_t *data;
unsigned width;
unsigned height;
size_t pitch;
bool dirty;
} menu_framebuf_t;
typedef struct menu_display
{
bool msg_force;
@ -79,8 +70,6 @@ typedef struct menu_display
menu_display_t *menu_display_get_ptr(void);
menu_framebuf_t *menu_display_fb_get_ptr(void);
void menu_display_libretro(void);
void menu_display_free(void *data);