| Summary: | SDL_SetRenderLogicalSize behavior is extremely buggy | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Mason Wheeler <masonwheeler> |
| Component: | render | Assignee: | Mason Wheeler <masonwheeler> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | Roung1990 |
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
|
Description
Mason Wheeler
2013-10-23 23:52:06 UTC
1) and 2) are really the same issue, and that behavior is extremely useful for games which have a fixed drawing aspect ratio. You can definitely create a hint to disable this behavior though. 3) should probably move the scaling down into the render driver level to take advantage of the hardware transform and keep the coordinate system under your control if you want. Feel free to submit a patch for that. Thanks! (In reply to Sam Lantinga from comment #1) > 1) and 2) are really the same issue, and that behavior is extremely useful > for games which have a fixed drawing aspect ratio. You can definitely > create a hint to disable this behavior though. > > 3) should probably move the scaling down into the render driver level to > take advantage of the hardware transform and keep the coordinate system > under your control if you want. Feel free to submit a patch for that. > > Thanks! The problem is, it will be difficult to fix 3) without also fixing 1) and 2), since the right way to fix 3) is to rip out all of the special calculations that currently implement Logical Size and replace the whole thing with a simple call that redefines the viewport of the rendering window when a logical size is chosen. But if we do that, how do we also keep the letterboxing? (Which I still don't think should be kept. Games that really need that tend to be older, simpler ones that should have plenty of processor power to spare in order to render to a render target and then render that to the screen to implement their own letterboxing.) We're going to revisit this for SDL 2.1. What ever happened with this? @mason wheeler? |