mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Remove gfx_display_scissor_end
This commit is contained in:
parent
d44ab6facf
commit
03ff504aa8
@ -621,20 +621,6 @@ void gfx_display_scissor_begin(void *userdata,
|
||||
}
|
||||
}
|
||||
|
||||
/* End scissoring operation */
|
||||
void gfx_display_scissor_end(
|
||||
void *userdata,
|
||||
unsigned video_width,
|
||||
unsigned video_height
|
||||
)
|
||||
{
|
||||
gfx_display_t *p_disp = disp_get_ptr();
|
||||
gfx_display_ctx_driver_t *dispctx = p_disp->dispctx;
|
||||
if (dispctx && dispctx->scissor_end)
|
||||
dispctx->scissor_end(userdata,
|
||||
video_width, video_height);
|
||||
}
|
||||
|
||||
font_data_t *gfx_display_font_file(
|
||||
char* fontpath, float menu_font_size, bool is_threaded)
|
||||
{
|
||||
|
@ -252,7 +252,6 @@ font_data_t *gfx_display_font(
|
||||
bool video_is_threaded);
|
||||
|
||||
void gfx_display_scissor_begin(void *data, unsigned video_width, unsigned video_height, int x, int y, unsigned width, unsigned height);
|
||||
void gfx_display_scissor_end(void *data, unsigned width, unsigned height);
|
||||
|
||||
void gfx_display_font_free(font_data_t *font);
|
||||
|
||||
|
@ -1165,8 +1165,9 @@ static void gfx_widgets_draw_task_msg(
|
||||
{
|
||||
gfx_widgets_flush_text(video_width, video_height,
|
||||
&p_dispwidget->gfx_widget_fonts.msg_queue);
|
||||
gfx_display_scissor_end(userdata,
|
||||
video_width, video_height);
|
||||
if (dispctx && dispctx->scissor_end)
|
||||
dispctx->scissor_end(userdata,
|
||||
video_width, video_height);
|
||||
}
|
||||
|
||||
/* Progress text */
|
||||
@ -1276,8 +1277,9 @@ static void gfx_widgets_draw_regular_msg(
|
||||
gfx_widgets_flush_text(video_width, video_height, &p_dispwidget->gfx_widget_fonts.bold);
|
||||
gfx_widgets_flush_text(video_width, video_height, &p_dispwidget->gfx_widget_fonts.msg_queue);
|
||||
|
||||
gfx_display_scissor_end(userdata,
|
||||
video_width, video_height);
|
||||
if (dispctx && dispctx->scissor_end)
|
||||
dispctx->scissor_end(userdata,
|
||||
video_width, video_height);
|
||||
}
|
||||
|
||||
if (p_dispwidget->msg_queue_has_icons)
|
||||
|
@ -238,8 +238,9 @@ static void gfx_widget_achievement_popup_frame(void* data, void* userdata)
|
||||
{
|
||||
gfx_widgets_flush_text(video_width, video_height,
|
||||
&p_dispwidget->gfx_widget_fonts.regular);
|
||||
gfx_display_scissor_end(video_info->userdata,
|
||||
video_width, video_height);
|
||||
if (dispctx && dispctx->scissor_end)
|
||||
dispctx->scissor_end(video_info->userdata,
|
||||
video_width, video_height);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2653,6 +2653,8 @@ static void ozone_frame(void *data, video_frame_info_t *video_info)
|
||||
bool input_menu_swap_ok_cancel_buttons = video_info->input_menu_swap_ok_cancel_buttons;
|
||||
bool battery_level_enable = video_info->battery_level_enable;
|
||||
bool timedate_enable = video_info->timedate_enable;
|
||||
gfx_display_t *p_disp = disp_get_ptr();
|
||||
gfx_display_ctx_driver_t *dispctx = p_disp->dispctx;
|
||||
|
||||
#if 0
|
||||
static bool reset = false;
|
||||
@ -2808,9 +2810,9 @@ static void ozone_frame(void *data, video_frame_info_t *video_info)
|
||||
libretro_running,
|
||||
menu_framebuffer_opacity);
|
||||
|
||||
gfx_display_scissor_end(userdata,
|
||||
video_width,
|
||||
video_height);
|
||||
if (dispctx && dispctx->scissor_end)
|
||||
dispctx->scissor_end(userdata,
|
||||
video_width, video_height);
|
||||
|
||||
/* Flush first layer of text */
|
||||
ozone_font_flush(video_width, video_height, &ozone->fonts.footer);
|
||||
|
@ -474,8 +474,9 @@ console_iterate:
|
||||
|
||||
ozone_font_flush(video_width, video_height, &ozone->fonts.sidebar);
|
||||
|
||||
gfx_display_scissor_end(userdata, video_width,
|
||||
video_height);
|
||||
if (dispctx && dispctx->scissor_end)
|
||||
dispctx->scissor_end(userdata,
|
||||
video_width, video_height);
|
||||
}
|
||||
|
||||
void ozone_go_to_sidebar(ozone_handle_t *ozone, uintptr_t tag)
|
||||
|
Loading…
x
Reference in New Issue
Block a user