sultim-t / Serious-Engine-RT

GNU General Public License v2.0
203 stars 12 forks source link

Game doesn't go above 720p on a 4K display (with workaround) #21

Open ahmedmuhtasim opened 2 years ago

ahmedmuhtasim commented 2 years ago

The game fails to recognize any resolution above 720p. Setting 4K resolution in the .ini file causes most of the game to bleed over the screen.

Please let me know if there is a workaround. Thank you.

ahmedmuhtasim commented 2 years ago

int iFullscreenWidth = ::GetSystemMetrics(SM_CXSCREEN); and int iFullscreenHeight = ::GetSystemMetrics(SM_CYSCREEN); returns wrong value if Windows scaling is not 100%. Workaround is setting scaling to 100%.

Line: https://github.com/sultim-t/Serious-Engine-RT/blob/db91524c316d14248b06ff15854fbc2605fe514d/Sources/SeriousSam/MainWindow.cpp#L181

Calinou commented 1 year ago

See my comment on scaling here: https://github.com/sultim-t/Serious-Engine-RT/issues/23#issuecomment-1257016419

To fix this without requiring users to manually override the scaling mode, the process should be marked as DPI-aware in the source code.