You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have a way to set the display window size independently of the physical hardware display resolution. I.e. an API function something like this:
SDL_Surface *SDL_SetVideoModeCustom(int physicalScreenWidth, int physicalScreenHeight, int displayWidth, int displayHeight, int bpp, Uint32 flags);
This would use displayWidth and displayHeight for the dimensions of a
display window, to be centered on a fullscreen hardware resolution of
physicalScreenWidth by physicalScreenHeight.
Access to physicalScreen(Width|Height) through environment variables could also be useful to the end user.
There are at least 2 use cases:
(1) To maintain the correct pixel aspect ratio for widescreen or tall LCD's, e.g. to always use the LCD's native resolution.
(2) To make the display window smaller for massive displays at normal desktop viewing distances, e.g. for fast action games where it could be hard to see all parts of a massive display at once.
While there may be workarounds for these use cases, mouse-cursor handling becomes very kludgy---it would be very nice to take advantage of SDL's automatic constraining of the mouse cursor position to stay within the display window in these cases.
On 2006-09-24 11:58:45 +0000, Sam Lantinga wrote:
This is already available in the SDL 1.3 API, where the concept of window size and resolution size are split.
The text was updated successfully, but these errors were encountered:
This bug report was migrated from our old Bugzilla tracker.
Reported in version: 1.2.11
Reported for operating system, platform: All, All
Comments on the original bug report:
On 2006-08-15 01:18:56 +0000, Mike B wrote:
On 2006-09-24 11:58:45 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: