Skip to content

Commit

Permalink
Only apply to the internal connector
Browse files Browse the repository at this point in the history
  • Loading branch information
honjow committed Apr 15, 2024
1 parent 4a37d0b commit 9bb8d9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/drm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,10 @@ static void parse_edid( drm_t *drm, struct connector *conn)
conn->valid_display_rates = std::span(galileo_display_rates);
} else {
conn->is_galileo_display = 0;
if ( g_customRefreshRates.size() > 0 ) {
if ( g_customRefreshRates.size() > 0 &&
(conn->connector->connector_type == DRM_MODE_CONNECTOR_eDP ||
conn->connector->connector_type == DRM_MODE_CONNECTOR_LVDS ||
conn->connector->connector_type == DRM_MODE_CONNECTOR_DSI)) {
conn->valid_display_rates = std::span(g_customRefreshRates);
} else if ( conn->is_steam_deck_display ) {
conn->valid_display_rates = std::span(steam_deck_display_rates);
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ int main(int argc, char **argv)
g_drmModeExternalOrientation = force_external_orientation( optarg );
} else if (strcmp(opt_name, "force-panel-type") == 0) {
g_drmPanelType = force_panel_type( optarg );
else if (strcmp(opt_name, "custom-refresh-rates") == 0) {
} else if (strcmp(opt_name, "custom-refresh-rates") == 0) {
g_customRefreshRates = parse_custom_refresh_rates( optarg );
} else if (strcmp(opt_name, "sharpness") == 0 ||
strcmp(opt_name, "fsr-sharpness") == 0) {
Expand Down

0 comments on commit 9bb8d9d

Please sign in to comment.