Skip to content

Commit a340c70

Browse files
committed
video_driver_apply_state_changes only gets called from command_event
1 parent 6224ab6 commit a340c70

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

gfx/video_crt_switch.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ static void crt_aspect_ratio_switch(
111111
video_st->current_video->set_viewport(
112112
video_st->data, width, height, true, true);
113113

114-
video_driver_apply_state_changes();
115-
114+
command_event(CMD_EVENT_VIDEO_APPLY_STATE_CHANGES, NULL);
116115
}
117116

118117
static void crt_switch_set_aspect(
@@ -419,7 +418,7 @@ static void switch_res_crt(
419418
1.0f,
420419
false);
421420
video_driver_set_output_size(width , height);
422-
video_driver_apply_state_changes();
421+
command_event(CMD_EVENT_VIDEO_APPLY_STATE_CHANGES, NULL);
423422
}
424423
}
425424
#endif
@@ -517,7 +516,7 @@ void crt_switch_res_core(
517516
float fly_aspect = (float)p_switch->fly_aspect;
518517
RARCH_LOG("[CRT] Restoring aspect ratio: %f.\n", fly_aspect);
519518
video_st->aspect_ratio = fly_aspect;
520-
video_driver_apply_state_changes();
519+
command_event(CMD_EVENT_VIDEO_APPLY_STATE_CHANGES, NULL);
521520
}
522521
}
523522
}

0 commit comments

Comments
 (0)