mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Remove pointer grabbing from get_msg_queue function
This commit is contained in:
parent
69bdf581f4
commit
7f54f410f4
@ -410,9 +410,9 @@ unsigned gfx_widgets_get_last_video_height(void *data)
|
||||
return p_dispwidget->last_video_height;
|
||||
}
|
||||
|
||||
size_t gfx_widgets_get_msg_queue_size(void)
|
||||
size_t gfx_widgets_get_msg_queue_size(void *data)
|
||||
{
|
||||
dispgfx_widget_t *p_dispwidget = (dispgfx_widget_t*)dispwidget_get_ptr();
|
||||
dispgfx_widget_t *p_dispwidget = (dispgfx_widget_t*)data;
|
||||
return p_dispwidget->current_msgs ? p_dispwidget->current_msgs->size : 0;
|
||||
}
|
||||
|
||||
|
@ -126,7 +126,7 @@ unsigned gfx_widgets_get_last_video_height(void *data);
|
||||
unsigned gfx_widgets_get_generic_message_height(void *data);
|
||||
|
||||
/* Warning: not thread safe! */
|
||||
size_t gfx_widgets_get_msg_queue_size(void);
|
||||
size_t gfx_widgets_get_msg_queue_size(void *data);
|
||||
|
||||
float gfx_widgets_get_thumbnail_scale_factor(
|
||||
const float dst_width, const float dst_height,
|
||||
|
@ -95,7 +95,7 @@ static void gfx_widget_generic_message_frame(void* data, void *user_data)
|
||||
unsigned height = gfx_widgets_get_generic_message_height(user_data);
|
||||
unsigned text_color = COLOR_TEXT_ALPHA(0xffffffff, (unsigned)(state->alpha*255.0f));
|
||||
gfx_widget_font_data_t* font_regular = gfx_widgets_get_font_regular(user_data);
|
||||
size_t msg_queue_size = gfx_widgets_get_msg_queue_size();
|
||||
size_t msg_queue_size = gfx_widgets_get_msg_queue_size(user_data);
|
||||
|
||||
gfx_display_set_alpha(gfx_widgets_get_backdrop_orig(), state->alpha);
|
||||
|
||||
|
@ -102,7 +102,7 @@ static void gfx_widget_libretro_message_frame(void *data, void *user_data)
|
||||
float* backdrop_orign = gfx_widgets_get_backdrop_orig();
|
||||
unsigned text_color = COLOR_TEXT_ALPHA(0xffffffff, (unsigned)(state->alpha*255.0f));
|
||||
gfx_widget_font_data_t* font_regular = gfx_widgets_get_font_regular(user_data);
|
||||
size_t msg_queue_size = gfx_widgets_get_msg_queue_size();
|
||||
size_t msg_queue_size = gfx_widgets_get_msg_queue_size(user_data);
|
||||
|
||||
gfx_display_set_alpha(backdrop_orign, state->alpha);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user