mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Get rid of some void * arguments in menu_display.c
This commit is contained in:
parent
4c4cdd49c6
commit
71b83aec7c
@ -60,10 +60,8 @@ void menu_display_fb(void)
|
|||||||
rarch_render_cached_frame();
|
rarch_render_cached_frame();
|
||||||
}
|
}
|
||||||
|
|
||||||
void menu_display_free(void *data)
|
void menu_display_free(menu_handle_t *menu)
|
||||||
{
|
{
|
||||||
menu_handle_t *menu = (menu_handle_t*)data;
|
|
||||||
|
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -71,10 +69,8 @@ void menu_display_free(void *data)
|
|||||||
menu->animation = NULL;
|
menu->animation = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool menu_display_init(void *data)
|
bool menu_display_init(menu_handle_t *menu)
|
||||||
{
|
{
|
||||||
menu_handle_t *menu = (menu_handle_t*)data;
|
|
||||||
|
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -86,10 +82,9 @@ bool menu_display_init(void *data)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
float menu_display_get_dpi(void *data)
|
float menu_display_get_dpi(menu_handle_t *menu)
|
||||||
{
|
{
|
||||||
float dpi, dpi_orig = 128;
|
float dpi, dpi_orig = 128;
|
||||||
menu_handle_t *menu = (menu_handle_t*)data;
|
|
||||||
|
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return dpi_orig;
|
return dpi_orig;
|
||||||
|
@ -16,19 +16,21 @@
|
|||||||
#ifndef __MENU_DISPLAY_H__
|
#ifndef __MENU_DISPLAY_H__
|
||||||
#define __MENU_DISPLAY_H__
|
#define __MENU_DISPLAY_H__
|
||||||
|
|
||||||
|
#include "menu_driver.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void menu_display_fb(void);
|
void menu_display_fb(void);
|
||||||
|
|
||||||
void menu_display_free(void *data);
|
void menu_display_free(menu_handle_t *menu);
|
||||||
|
|
||||||
bool menu_display_init(void *data);
|
bool menu_display_init(menu_handle_t *menu);
|
||||||
|
|
||||||
bool menu_display_update_pending(void);
|
bool menu_display_update_pending(void);
|
||||||
|
|
||||||
float menu_display_get_dpi(void *data);
|
float menu_display_get_dpi(menu_handle_t *menu);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user