devilutionX icon indicating copy to clipboard operation
devilutionX copied to clipboard

The resolution list is wrong on macOS.

Open bubio opened this issue 3 years ago • 7 comments

Important information macOS 12.3.1 / Test Build #6931 / Download

Describe The resolution list in the options menu is wrong in macOS. A value that exceeds the maximum resolution of the monitor is displayed. It probably occurs on models with Retina display.

Screenshots

  • Monitor スクリーンショット 2022-04-07 0 02 35

  • Built-in Reina Display スクリーンショット 2022-04-07 0 05 57

  • External Display スクリーンショット 2022-04-07 0 04 38

Expected behavior The maximum resolution should be 2560 x 1600 on a Built-in Reina Display and 1920 x 1080 on an external display.

bubio avatar Apr 06 '22 15:04 bubio

Perhaps, in SDL2, we can just use the value returned by the SDL_GetDisplayMode function.

https://github.com/diasurgical/devilutionX/blob/df8c1a3e8cdde80595453e1bca25dd92131942de/Source/options.cpp#L687

bubio avatar Apr 06 '22 15:04 bubio

@DrGonzo564 How about on an iMac 5K? Wouldn't the resolution selection show something like 10240 x 5760?

bubio avatar Apr 07 '22 02:04 bubio

@DrGonzo564 How about on an iMac 5K? Wouldn't the resolution selection show something like 10240 x 5760?

@bubio

This is what I'm seeing posted screen shots below... I leave DevilutionX at 640x480 tho otherwise the image doesn't display in fullscreen properly

my displays default resolution is set at 2560 x 1440 but it can go up to 3200 x 1800 in the display settings

Screen Shot 2022-04-07 at 12 32 53 AM Screen Shot 2022-04-07 at 12 33 08 AM Screen Shot 2022-04-07 at 12 33 19 AM

DrGonzo564 avatar Apr 07 '22 07:04 DrGonzo564

This seems relevant. https://github.com/libsdl-org/SDL/issues/5290#issuecomment-1027272308

StephenCWills avatar Apr 07 '22 07:04 StephenCWills

@DrGonzo564 Thanks! I see the same problem.

bubio avatar Apr 07 '22 07:04 bubio

535a84b688407a96f2cb811e81ed61e0388836f5

When this is done, the external display appears to be the correct choice (the maximum value is 1080p).

For the built-in display, a much larger value is available for selection.

スクリーンショット 2023-07-16 16 51 52

bubio avatar Jul 16 '23 07:07 bubio

d24bfccda69f1245ca85b355f4e1037db1613e15

It appears that the SDL has been updated, but it is still not correct.

  • External** display is correct.(1920 x 1080 is the maximum resolution)

スクリーンショット 2024-01-25 21 35 05

  • Built-in display is incorrect.(2560 × 1600 is the maximum resolution)
スクリーンショット 2024-01-25 21 42 17

bubio avatar Jan 25 '24 12:01 bubio