mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Merge pull request #10971 from Jamiras/gfx_widgets_achievements
pass correct userdata object to gfx_display functions
This commit is contained in:
commit
22e6bf8bae
@ -134,7 +134,7 @@ static void gfx_widget_achievement_popup_frame(void* data, void* userdata)
|
|||||||
/* Icon */
|
/* Icon */
|
||||||
if (p_dispwidget->gfx_widgets_icons_textures[MENU_WIDGETS_ICON_ACHIEVEMENT])
|
if (p_dispwidget->gfx_widgets_icons_textures[MENU_WIDGETS_ICON_ACHIEVEMENT])
|
||||||
{
|
{
|
||||||
gfx_display_blend_begin(userdata);
|
gfx_display_blend_begin(video_info->userdata);
|
||||||
gfx_widgets_draw_icon(
|
gfx_widgets_draw_icon(
|
||||||
video_info->userdata,
|
video_info->userdata,
|
||||||
video_width,
|
video_width,
|
||||||
@ -145,7 +145,7 @@ static void gfx_widget_achievement_popup_frame(void* data, void* userdata)
|
|||||||
0,
|
0,
|
||||||
state->y,
|
state->y,
|
||||||
video_width, video_height, 0, 1, gfx_widgets_get_pure_white());
|
video_width, video_height, 0, 1, gfx_widgets_get_pure_white());
|
||||||
gfx_display_blend_end(userdata);
|
gfx_display_blend_end(video_info->userdata);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Badge */
|
/* Badge */
|
||||||
@ -220,7 +220,7 @@ static void gfx_widget_achievement_popup_frame(void* data, void* userdata)
|
|||||||
{
|
{
|
||||||
gfx_widgets_flush_text(video_width, video_height,
|
gfx_widgets_flush_text(video_width, video_height,
|
||||||
&p_dispwidget->gfx_widget_fonts.regular);
|
&p_dispwidget->gfx_widget_fonts.regular);
|
||||||
gfx_display_scissor_end(userdata,
|
gfx_display_scissor_end(video_info->userdata,
|
||||||
video_width, video_height);
|
video_width, video_height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user