If I understood, XFree 4.x can resize a windows with the xv extension.
Does SDL care of this feature ?
In fact my question is. How to use xv resize with SDL and SMPEG instead of
the software resize.
I tried to change flags passed to SDL_SetVideoMode but it didn’t work.
Pass SDL_RESIZABLE to SDL_SetVideoMode(), and then handle the SDL_VIDEOSIZE
event. Look at the plaympeg.c source in the SMPEG package for an example: http://www.lokigames.com/development/smpeg.php3
See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
When I use the resize function in SMPEG. Is it a software resize ( by
SMPEG) or a xv resize ? May be both…
I created a SDL window with the SDL_RESIZABLE flag and then put a picture.
The resize event doesn’t resize the picture with the xv extension.
How is it possible to do that ?
May be I should post in the SMPEG news group…
Regards
Nicolas>> If I understood, XFree 4.x can resize a windows with the xv extension.
Does SDL care of this feature ?
In fact my question is. How to use xv resize with SDL and SMPEG instead
of the software resize.
I tried to change flags passed to SDL_SetVideoMode but it didn’t work.
Pass SDL_RESIZABLE to SDL_SetVideoMode(), and then handle the
SDL_VIDEOSIZE
event. Look at the plaympeg.c source in the SMPEG package for an example: http://www.lokigames.com/development/smpeg.php3
See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software