input_overlay.c - cleanups

This commit is contained in:
twinaphex 2017-01-01 04:21:29 +01:00
parent 0ec6ef75df
commit 8d8fab60f9
1 changed files with 8 additions and 20 deletions

View File

@ -470,18 +470,6 @@ void input_overlay_next(input_overlay_t *ol, float opacity)
ol->next_index = (ol->index + 1) % ol->size;
}
/**
* input_overlay_full_screen:
*
* Checks if the overlay is fullscreen.
*
* Returns: true (1) if overlay is fullscreen, otherwise false (0).
**/
static bool input_overlay_full_screen(input_overlay_t *ol)
{
return ol->active->full_screen;
}
/**
* input_overlay_free:
* @ol : Overlay handle.
@ -613,7 +601,7 @@ void input_poll_overlay(input_overlay_t *ol, float opacity)
sizeof(ol_state->keys));
memset(ol_state, 0, sizeof(*ol_state));
device = input_overlay_full_screen(ol) ?
device = ol->active->full_screen ?
RARCH_DEVICE_POINTER_SCREEN : RETRO_DEVICE_POINTER;
for (i = 0;