Overlays

It’s safe, when you resize a window that contains an SDL_Overlay to assume
that the overlay is still valid or I’ve to DeleteYUVOverlay() and then
recreate it with CreateYUVOverlay() every time I call SetVideoMode() int
the SDL_VIDEORESIZE event handling code?

BTW I’ve noticed that SDL is able to produce an HW accelerated overlay only
for SDL_YV12_OVERLAY type, at least on my RivaTNT 2 with Invidia drivers
and X 4.2.0. That’s not a problem since it’s the mode I need :slight_smile:

Bye,
Gabry (gabrielegreco at tin.it)

It’s safe, when you resize a window that contains an SDL_Overlay to assume
that the overlay is still valid or I’ve to DeleteYUVOverlay() and then
recreate it with CreateYUVOverlay() every time I call SetVideoMode() int
the SDL_VIDEORESIZE event handling code?

To be safe, you should probably recreate it after you set a video mode.

-Sam Lantinga, Software Engineer, Blizzard Entertainment