mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Remove nasty input overlay hack for input_overlay_set_scale_factor
This commit is contained in:
parent
e9846aae68
commit
bbb2ffea9c
@ -2184,7 +2184,7 @@ bool command_event(enum event_command cmd, void *data)
|
|||||||
break;
|
break;
|
||||||
case CMD_EVENT_OVERLAY_SET_SCALE_FACTOR:
|
case CMD_EVENT_OVERLAY_SET_SCALE_FACTOR:
|
||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
input_overlay_set_scale_factor(NULL, settings->input.overlay_scale);
|
input_overlay_set_scale_factor(overlay_ptr, settings->input.overlay_scale);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case CMD_EVENT_OVERLAY_SET_ALPHA_MOD:
|
case CMD_EVENT_OVERLAY_SET_ALPHA_MOD:
|
||||||
|
@ -74,7 +74,7 @@ struct input_overlay
|
|||||||
enum overlay_status state;
|
enum overlay_status state;
|
||||||
};
|
};
|
||||||
|
|
||||||
static input_overlay_t *overlay_ptr = NULL;
|
input_overlay_t *overlay_ptr = NULL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* input_overlay_scale:
|
* input_overlay_scale:
|
||||||
@ -150,9 +150,6 @@ void input_overlay_set_scale_factor(input_overlay_t *ol, float scale)
|
|||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
/* TODO/FIXME - Bad hackery. Should get rid of this */
|
|
||||||
if (!ol)
|
|
||||||
ol = overlay_ptr;
|
|
||||||
if (!ol)
|
if (!ol)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -244,6 +244,9 @@ bool input_overlay_is_alive(input_overlay_t *ol);
|
|||||||
|
|
||||||
void input_overlay_loaded(void *task_data, void *user_data, const char *err);
|
void input_overlay_loaded(void *task_data, void *user_data, const char *err);
|
||||||
|
|
||||||
|
/* FIXME - temporary. Globals are bad */
|
||||||
|
extern input_overlay_t *overlay_ptr;
|
||||||
|
|
||||||
RETRO_END_DECLS
|
RETRO_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user