MSVC2010 - fix invisible menu display on winxp (#15599)

Explicit typecast to bool
This commit is contained in:
vailkyte 2023-08-15 17:00:13 -05:00 committed by GitHub
parent 3862069cb7
commit 139d7f3836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3377,8 +3377,8 @@ void video_driver_frame(const void *data, unsigned width,
runloop_state_t *runloop_st = runloop_state_get_ptr();
const enum retro_pixel_format
video_driver_pix_fmt = video_st->pix_fmt;
bool runloop_idle = runloop_st->flags & RUNLOOP_FLAG_IDLE;
bool video_driver_active = video_st->flags & VIDEO_FLAG_ACTIVE;
bool runloop_idle = (runloop_st->flags & RUNLOOP_FLAG_IDLE) ? true : false;
bool video_driver_active = (video_st->flags & VIDEO_FLAG_ACTIVE) ? true : false;
#if defined(HAVE_GFX_WIDGETS)
dispgfx_widget_t *p_dispwidget = dispwidget_get_ptr();
bool widgets_active = p_dispwidget->active;