Skip to content

Commit

Permalink
display: Also prefer <4K modes in the vertical dimension
Browse files Browse the repository at this point in the history
Apparently 2:1 scaled modes like 1920x2160 are a thing?

Signed-off-by: Hector Martin <marcan@marcan.st>
  • Loading branch information
marcan committed Mar 27, 2022
1 parent df53f16 commit 8af401a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static void display_choose_timing_mode(dcp_timing_mode_t *modes, int cnt, dcp_ti
for (int i = 1; i < cnt; i++) {
COMPARE(modes[i].valid, best->valid);
COMPARE(modes[i].width <= 1920, best->width <= 1920);
COMPARE(modes[i].height <= 1200, best->height <= 1200);
COMPARE(modes[i].fps <= 60 << 16, best->fps <= 60 << 16);
COMPARE(modes[i].width, best->width);
COMPARE(modes[i].height, best->height);
Expand Down

0 comments on commit 8af401a

Please sign in to comment.