diff --git a/menu/drivers/rmenu_xui.cpp b/menu/drivers/rmenu_xui.cpp index 4e63cc457b..26f0679e35 100644 --- a/menu/drivers/rmenu_xui.cpp +++ b/menu/drivers/rmenu_xui.cpp @@ -398,7 +398,7 @@ end: string_list_free(list); } -static void rmenu_xui_frame(void) +static void rmenu_xui_frame(void *data) { XUIMessage msg; XUIMessageRender msgRender; @@ -406,13 +406,7 @@ static void rmenu_xui_frame(void) LPDIRECT3DDEVICE d3dr; const char *message; D3DVIEWPORT vp_full = {0}; - d3d_video_t *d3d = NULL; - menu_handle_t *menu = menu_driver_get_ptr(); - - if (!menu) - return; - - d3d = (d3d_video_t*)video_driver_get_ptr(false); + d3d_video_t *d3d = (d3d_video_t*)video_driver_get_ptr(false); if (!d3d) return;