mirror of
https://github.com/libretro/RetroArch
synced 2025-02-12 00:40:26 +00:00
Get rid of implicit memset
This commit is contained in:
parent
b75f242a7f
commit
581333f222
@ -754,11 +754,11 @@ error:
|
|||||||
|
|
||||||
static bool video_driver_init_internal(bool *video_is_threaded)
|
static bool video_driver_init_internal(bool *video_is_threaded)
|
||||||
{
|
{
|
||||||
|
video_info_t video;
|
||||||
unsigned max_dim, scale, width, height;
|
unsigned max_dim, scale, width, height;
|
||||||
const input_driver_t *tmp = NULL;
|
const input_driver_t *tmp = NULL;
|
||||||
const struct retro_game_geometry *geom = NULL;
|
const struct retro_game_geometry *geom = NULL;
|
||||||
rarch_system_info_t *system = NULL;
|
rarch_system_info_t *system = NULL;
|
||||||
video_info_t video = {0};
|
|
||||||
static uint16_t dummy_pixels[32] = {0};
|
static uint16_t dummy_pixels[32] = {0};
|
||||||
video_viewport_t *custom_vp = &video_viewport_custom;
|
video_viewport_t *custom_vp = &video_viewport_custom;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
@ -859,6 +859,8 @@ static bool video_driver_init_internal(bool *video_is_threaded)
|
|||||||
video.fullscreen = settings->bools.video_fullscreen;
|
video.fullscreen = settings->bools.video_fullscreen;
|
||||||
video.vsync = settings->bools.video_vsync && !runloop_ctl(RUNLOOP_CTL_IS_NONBLOCK_FORCED, NULL);
|
video.vsync = settings->bools.video_vsync && !runloop_ctl(RUNLOOP_CTL_IS_NONBLOCK_FORCED, NULL);
|
||||||
video.force_aspect = settings->bools.video_force_aspect;
|
video.force_aspect = settings->bools.video_force_aspect;
|
||||||
|
video.font_enable = settings->bools.video_font_enable;
|
||||||
|
video.swap_interval = settings->uints.video_swap_interval;
|
||||||
#ifdef GEKKO
|
#ifdef GEKKO
|
||||||
video.viwidth = settings->uints.video_viwidth;
|
video.viwidth = settings->uints.video_viwidth;
|
||||||
video.vfilter = settings->bools.video_vfilter;
|
video.vfilter = settings->bools.video_vfilter;
|
||||||
@ -868,8 +870,6 @@ static bool video_driver_init_internal(bool *video_is_threaded)
|
|||||||
video.rgb32 = video_driver_state_filter ?
|
video.rgb32 = video_driver_state_filter ?
|
||||||
video_driver_state_out_rgb32 :
|
video_driver_state_out_rgb32 :
|
||||||
(video_driver_pix_fmt == RETRO_PIXEL_FORMAT_XRGB8888);
|
(video_driver_pix_fmt == RETRO_PIXEL_FORMAT_XRGB8888);
|
||||||
video.swap_interval = settings->uints.video_swap_interval;
|
|
||||||
video.font_enable = settings->bools.video_font_enable;
|
|
||||||
|
|
||||||
/* Reset video frame count */
|
/* Reset video frame count */
|
||||||
video_driver_frame_count = 0;
|
video_driver_frame_count = 0;
|
||||||
@ -911,8 +911,9 @@ static bool video_driver_init_internal(bool *video_is_threaded)
|
|||||||
if (current_video->poke_interface)
|
if (current_video->poke_interface)
|
||||||
current_video->poke_interface(video_driver_data, &video_driver_poke);
|
current_video->poke_interface(video_driver_data, &video_driver_poke);
|
||||||
|
|
||||||
if (current_video->viewport_info && (!custom_vp->width ||
|
if (current_video->viewport_info &&
|
||||||
!custom_vp->height))
|
(!custom_vp->width ||
|
||||||
|
!custom_vp->height))
|
||||||
{
|
{
|
||||||
/* Force custom viewport to have sane parameters. */
|
/* Force custom viewport to have sane parameters. */
|
||||||
custom_vp->width = width;
|
custom_vp->width = width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user