| Summary: | fullscreen_width and fullscreen_height variables are ignored | ||
|---|---|---|---|
| Product: | SDL | Reporter: | zodomaniac |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | CC: | fabian+debian |
| Version: | 2.0.8 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
| Attachments: | fullscreen_width and fullscreen_height should limit the game picture size like this but they don't. | ||
I should probably provide some more context to this (Chocolate Doom dev). Usually, if a user chooses to play the game in fullscreen, we set the SDL_WINDOW_FULLSCREEN_DESKTOP flag, because we assume the player wants to keep his desktop resolution and simply have the game cover the whole screen. However, there are two variables, fullscreen_width and fullscreen_height, which the user may set in the config file to express that he wants to play the game in fullscreen *in a specific screen resolution*. In that case, we set the SDL_WINDOW_FULLSCREEN flag, instead. Later on, we pass the width and height variables along with the flags to SDL_CreateWindow(). What we expect from this function in the latter case is to switch the screen to the given resolution - or the next highest one and and render the game in a centered area of the given dimensions surrounded by a black border. The code which is supposed to do what I just described can be found here: https://github.com/chocolate-doom/chocolate-doom/blob/master/src/i_video.c#L1145 However, we had reports from a Windows user that this doesn't work as intended. The downstream bug report is here: https://github.com/chocolate-doom/chocolate-doom/issues/1010 I can confirm it doesn't work as described on Linux with Wayland as well, whereas another user reported the feature to work on a Mac. Hope you can get after it! Best regards, - Fabian |
Created attachment 3225 [details] fullscreen_width and fullscreen_height should limit the game picture size like this but they don't. I set the fullscreen_width to 1728 and fullscreen_height to 1080 in Chocolate Doom config file and expected the game to be rendered fullscreen with black bars on the sides as my monitor is 1920x1080 (like in the provided screenshot), but the picture was stretched full screen instead.