OpenGL window resize

This is related to OS X + SDL_EventFilter = Bus Error topic…

The thing is when I resize the openGL window on Os X with SDL 1.2.13 the window
gets recreated and thus centered on the screen…

Now I’ve built the same code against the same version of SDL from the same source
code with the same ./configure code on windows with mingw… And it resizes
normally(without recentering).
I’ve been pointed to SDL_QuartzVideo.m:666 and there the window gets recreated
in openGL mode but was this intended that the behaviour isn’t consistent on
windows and os x?

SDL_QuartzVideo seems to be the work of the devil :wink:

Zedr0n wrote:

I’ve been pointed to SDL_QuartzVideo.m:666 and there the window gets recreated
in openGL mode but was this intended that the behaviour isn’t consistent on
windows and os x?

Probably that was just the easiest way to implement things on Mac OS X,
and so far it hasn’t bothered anyone enough to fix it. SDL is pretty
loosely specified in such respects. Judging from the comment on the
devilish line 666, it looks like the recreation could be skipped in many
more cases. You’re welcome to implement that, I suppose… (but probably
such efforts would be better spent on SDL 1.3 than 1.2).

-Christian