Opengl fullscreen bug

P.S. On osx 10.4.8 with SDL 1.2.11 when you use set both the SDL_FULLSCREEN
and SDL_OPENGL flags when calling SDL_SetVideoMode, the non supported
resolution/letterboxing/display window centred on black code doesn’t
work right:
the display window seems to appear at a random on location (not the centre).

Is this a bug? Or is it up to me to position the window in the case?
Not sure how
I’d do that if I don’t know where the output will be… If it’s a bug,
it’s actually not
that bad, because if you are using fullscreen and opengl, it’s not that hard
to choose a supported resolution and then scale up.

Anyway,
RF.–
felix: lightweight threads, HOFs and game scripting.
svn co https://svn.sourceforge.net/svnroot/felix/felix/trunk felix

Is this a bug? Or is it up to me to position the window in the case?

It would be a bug…but I can’t reproduce it.

SDL-1.2/test/testgl -fullscreen seems to work here on 10.4.9 on an Intel
Mac. If you can post a small program that reliably reproduces it, I’ll
take a look.

–ryan.

Is this a bug? Or is it up to me to position the window in the case?

It would be a bug…but I can’t reproduce it.

You need to try a non supported resolution. testgl uses 640x480,
if you change lines 455 and 456 to, say, 512x384 the output
shows up offset toward the lower right of the screen.

SDL-1.2/test/testgl -fullscreen seems to work here on 10.4.9 on an Intel
Mac. If you can post a small program that reliably reproduces it, I’ll
take a look.

Ta,
RF> From: “Ryan C. Gordon”

You need to try a non supported resolution. testgl uses 640x480,
if you change lines 455 and 456 to, say, 512x384 the output
shows up offset toward the lower right of the screen.

Huh, that’s definitely a bug, alright.

I’ve put it in the bugtracker so I don’t forget to look into it:
http://bugzilla.libsdl.org/show_bug.cgi?id=422

–ryan.