mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Merge pull request #13214 from MrHuu/ctr_achievement_widget_fix
[3DS] Fix achievement widget
This commit is contained in:
commit
89002e6b72
@ -464,6 +464,8 @@ void gfx_display_scissor_begin(
|
||||
int x, int y, unsigned width, unsigned height)
|
||||
{
|
||||
gfx_display_ctx_driver_t *dispctx = p_disp->dispctx;
|
||||
if (dispctx && dispctx->scissor_begin)
|
||||
{
|
||||
if (y < 0)
|
||||
{
|
||||
if (height < (unsigned)(-y))
|
||||
@ -499,6 +501,7 @@ void gfx_display_scissor_begin(
|
||||
video_width, video_height,
|
||||
x, y, width, height);
|
||||
}
|
||||
}
|
||||
|
||||
font_data_t *gfx_display_font_file(
|
||||
gfx_display_t *p_disp,
|
||||
|
@ -1262,7 +1262,6 @@ static void gfx_widgets_draw_task_msg(
|
||||
gfx_widgets_flush_text(video_width, video_height,
|
||||
&p_dispwidget->gfx_widget_fonts.msg_queue);
|
||||
|
||||
if (p_disp->dispctx && p_disp->dispctx->scissor_begin)
|
||||
gfx_display_scissor_begin(p_disp,
|
||||
userdata,
|
||||
video_width, video_height,
|
||||
@ -1348,7 +1347,7 @@ static void gfx_widgets_draw_regular_msg(
|
||||
gfx_widgets_flush_text(video_width, video_height,
|
||||
&p_dispwidget->gfx_widget_fonts.msg_queue);
|
||||
|
||||
if (p_disp->dispctx && p_disp->dispctx->scissor_begin)
|
||||
|
||||
gfx_display_scissor_begin(p_disp,
|
||||
userdata,
|
||||
video_width, video_height,
|
||||
|
Loading…
x
Reference in New Issue
Block a user