Skip to content

Commit 77a1634

Browse files
committed
Use new widget flags properly in gfx_widgets_visible
1 parent 5ee450a commit 77a1634

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

gfx/gfx_widgets.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,9 +1553,9 @@ bool gfx_widgets_visible(void *data)
15531553
bool memory_show = video_info->memory_show;
15541554
bool core_status_msg_show = video_info->core_status_msg_show;
15551555
bool widgets_is_paused = (video_info->video_st_flags & VIDEO_FLAG_WIDGETS_PAUSED) ? true : false;
1556-
bool widgets_is_fastforwarding = (video_info->video_st_flags & VIDEO_FLAG_WIDGETS_FASTMOTION) ? true : false;
1556+
bool widgets_is_fastmotion = (video_info->video_st_flags & VIDEO_FLAG_WIDGETS_FASTMOTION) ? true : false;
1557+
bool widgets_is_slowmotion = (video_info->video_st_flags & VIDEO_FLAG_WIDGETS_SLOWMOTION) ? true : false;
15571558
bool widgets_is_rewinding = (video_info->video_st_flags & VIDEO_FLAG_WIDGETS_REWINDING) ? true : false;
1558-
bool runloop_is_slowmotion = video_info->runloop_is_slowmotion;
15591559
bool notifications_hidden = video_info->notifications_hidden || video_info->msg_queue_delay;
15601560

15611561
#ifdef HAVE_MENU
@@ -1574,8 +1574,10 @@ bool gfx_widgets_visible(void *data)
15741574
if (fps_show || framecount_show || memory_show || core_status_msg_show)
15751575
return true;
15761576

1577-
if (widgets_is_paused || widgets_is_fastforwarding
1578-
|| widgets_is_rewinding || runloop_is_slowmotion)
1577+
if ( widgets_is_paused
1578+
|| widgets_is_fastmotion
1579+
|| widgets_is_slowmotion
1580+
|| widgets_is_rewinding)
15791581
return true;
15801582

15811583
for (i = 0; i < ARRAY_SIZE(widgets); i++)

0 commit comments

Comments
 (0)