mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 10:10:57 +00:00
Fix building drm_ctx.x without crt switchres
This commit is contained in:
parent
2c9bc8d850
commit
fa443845dd
@ -343,6 +343,7 @@ error:
|
|||||||
/* Get the mode from video_state */
|
/* Get the mode from video_state */
|
||||||
bool gfx_ctx_drm_get_mode_from_video_state(drmModeModeInfoPtr modeInfo)
|
bool gfx_ctx_drm_get_mode_from_video_state(drmModeModeInfoPtr modeInfo)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_CRTSWITCHRES
|
||||||
video_driver_state_t *video_st = video_state_get_ptr();
|
video_driver_state_t *video_st = video_state_get_ptr();
|
||||||
if (video_st->crt_switch_st.vdisplay < 1)
|
if (video_st->crt_switch_st.vdisplay < 1)
|
||||||
{
|
{
|
||||||
@ -375,6 +376,9 @@ bool gfx_ctx_drm_get_mode_from_video_state(drmModeModeInfoPtr modeInfo)
|
|||||||
/* consider the mode read and removed */
|
/* consider the mode read and removed */
|
||||||
video_st->crt_switch_st.vdisplay = 0;
|
video_st->crt_switch_st.vdisplay = 0;
|
||||||
return true;
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load custom hdmi timings from config */
|
/* Load custom hdmi timings from config */
|
||||||
|
Loading…
Reference in New Issue
Block a user