drm: select mode based on g_nNestedRefresh

g_nOutputRefresh is not set by CLI flags.
This commit is contained in:
Simon Ser 2021-07-20 16:25:54 +02:00
parent 17edd12b3f
commit a3144601c3

View file

@ -432,9 +432,9 @@ int init_drm(struct drm_t *drm, const char *device)
return -1; return -1;
} }
if ( g_nOutputWidth != 0 || g_nOutputHeight != 0 || g_nOutputRefresh != 0 ) if ( g_nOutputWidth != 0 || g_nOutputHeight != 0 || g_nNestedRefresh != 0 )
{ {
drm->mode = get_matching_mode(connector, g_nOutputWidth, g_nOutputHeight, g_nOutputRefresh); drm->mode = get_matching_mode(connector, g_nOutputWidth, g_nOutputHeight, g_nNestedRefresh);
} }
if (!drm->mode) { if (!drm->mode) {