[SDL] SDL_Window suggestion

Donny Viszneki donny.viszneki at gmail.com
Thu Apr 30 23:44:53 PDT 2009

On Fri, May 1, 2009 at 2:42 AM, Donny Viszneki <donny.viszneki at gmail.com> wrote:
> On Thu, Apr 30, 2009 at 8:46 PM, Gerry JJ <trick at icculus.org> wrote:
>> Den Thu, 30 Apr 2009 19:59:47 -0400
>> * They launch the game.
>> * Game goes fullscreen (might be default, user might switch from
>>  windowed mode, doesn't matter).
>> * Game magically displays with correct aspect ratio. And they didn't
>>  have to configure a thing! Yay!
>> I like it when things Just Work.  I'd like my games to Just Work for
>> other people, as well.  They should not have to mess with environment
>> variables to get things to look correctly, to me that's a horrible
>> solution.
>> Anyway, to do this reliably, from the developer's point of view, you'll
>> have to use native resolution and scale the image to fill the screen
>> while maintaining correct aspect ratio, as I went over before.  SDL
>> could potentially even do this automatically, but an API to select what
>> to do would be nice (scaling type if any, integer or non-integer, etc).
>> (As a bonus, this could also be used to add black bars and scaling in
>> resizable windowed modes.)
> Ah, well this is where we diverge.

By which I mean: how can this be done? It seems not possible to me. If
the monitor + driver + OS / X are not giving the information to SDL,
what recourse does SDL have?


More information about the SDL mailing list