Some more explicit typecasts to bools

This commit is contained in:
libretroadmin 2023-08-16 00:33:59 +02:00
parent dadb5a6f41
commit 797c7ff381
2 changed files with 20 additions and 20 deletions

View File

@ -1189,7 +1189,7 @@ bool gfx_animation_update(
{
unsigned i;
gfx_animation_t *p_anim = &anim_st;
const bool ticker_is_active = p_anim->flags & GFX_ANIM_FLAG_TICKER_IS_ACTIVE;
const bool ticker_is_active = (p_anim->flags & GFX_ANIM_FLAG_TICKER_IS_ACTIVE) ? true : false;
static retro_time_t last_clock_update = 0;
static retro_time_t last_ticker_update = 0;

View File

@ -2662,7 +2662,7 @@ void video_driver_build_info(video_frame_info_t *video_info)
#endif
#endif
video_info->input_driver_nonblock_state = input_st ? (input_st->flags & INP_FLAG_NONBLOCKING) : false;
video_info->input_driver_nonblock_state = (input_st->flags & INP_FLAG_NONBLOCKING) ? true : false;
video_info->input_driver_grab_mouse_state = (input_st->flags & INP_FLAG_GRAB_MOUSE_STATE) ? true : false;
video_info->disp_userdata = disp_get_ptr();