Skip to content

Commit 52d95fb

Browse files
committed
Instead of direct calls to video_driver_set_aspect_ratio, go through
command_event instead
1 parent 5f38f4a commit 52d95fb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

menu/menu_setting.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8932,7 +8932,7 @@ static void general_write_handler(rarch_setting_t *setting)
89328932
aspectratio_lut[ASPECT_RATIO_CUSTOM].value = (float)custom_vp->width / custom_vp->height;
89338933

89348934
/* Update Aspect Ratio (only useful for 1:1 PAR) */
8935-
video_driver_set_aspect_ratio();
8935+
command_event(CMD_EVENT_VIDEO_SET_ASPECT_RATIO, NULL);
89368936
}
89378937
}
89388938
break;

runloop.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2449,7 +2449,7 @@ bool runloop_environment_cb(unsigned cmd, void *data)
24492449
RARCH_LOG("[Environ] Setting audio latency to %u ms.\n", audio_latency_new);
24502450

24512451
command_event(CMD_EVENT_REINIT, &reinit_flags);
2452-
video_driver_set_aspect_ratio();
2452+
command_event(CMD_EVENT_VIDEO_SET_ASPECT_RATIO, NULL);
24532453

24542454
/* Cannot continue recording with different
24552455
* parameters.
@@ -2688,7 +2688,7 @@ bool runloop_environment_cb(unsigned cmd, void *data)
26882688
command_event(CMD_EVENT_REINIT, &reinit_flags);
26892689

26902690
if (no_video_reinit)
2691-
video_driver_set_aspect_ratio();
2691+
command_event(CMD_EVENT_VIDEO_SET_ASPECT_RATIO, NULL);
26922692

26932693
if (video_switch_refresh_rate)
26942694
video_display_server_set_refresh_rate(refresh_rate);
@@ -2919,7 +2919,7 @@ bool runloop_environment_cb(unsigned cmd, void *data)
29192919

29202920
/* Forces recomputation of aspect ratios if
29212921
* using core-dependent aspect ratios. */
2922-
video_driver_set_aspect_ratio();
2922+
command_event(CMD_EVENT_VIDEO_SET_ASPECT_RATIO, NULL);
29232923

29242924
/* Ignore frame delay target temporarily */
29252925
if (video_frame_delay_auto)

0 commit comments

Comments
 (0)