afritz1 / OpenTESArena

Open-source re-implementation of The Elder Scrolls: Arena.
MIT License
915 stars 68 forks source link

[Don't merge] Add exclusive fullscreen mode #158

Closed afritz1 closed 2 years ago

afritz1 commented 4 years ago

Making a pull request for this since I haven't figured out why Windows 10 freaks out when switching from exclusive fullscreen to borderless fullscreen.

I'd like exclusive fullscreen to only be the desktop resolution for now but I'm having trouble getting SDL to do that with SDL_SetWindowFullscreen() and SDL_SetWindowMode().

There are also some DPI problems that crop up if the fullscreen resolution is different from the desktop, so that's another reason to match the desktop resolution.

afritz1 commented 4 years ago

Also probably want to change ScreenWidth/Height to WindowWidth/Height so it's clear it only applies to windowed mode, not borderless or fullscreen.

afritz1 commented 2 years ago

Closing this to attempt it in a new PR.