[smpeg] SMPEG_setdisplay()

Manuel Arguelles paco at flamingo-games.com
Mon Feb 16 16:12:46 EST 2004

I did it, but without success, I just created a new surface and (acording to plaympeg) I changed the surface parameter of SMPEG_setdisplay(), I also tried to blit and update the new surface, but I'm not getting any video :(

I'm creating the Surface with:
video = SDL_CreateRGBSurface(SDL_SWSURFACE | SDL_HWSURFACE,352,240,16,screen->format->Rmask,screen->format->Gmask, screen->format->Bmask,screen->format->Amask);

when do I have to blit it? after the smpeg_setdisplay? after the main loop? inside the main loop? what about the update?

(sorry, as you can see I'm a little lost here...) :(
thanx for you time

----- Original Message -----
Chunky Kibbles wrote:
> On Thu, Feb 12, 2004 at 01:41:29AM -0500, Manuel Arguelles wrote:
> > hi,
> > 
> > I took a look at smpeg.cpp and notice that SMPEG_setdisplay()
> > has a parameter for the SDL surface, in plaympeg example the use that
> > destination surface as screen (the first and main surface); the question
> > is: if it's possible to asign a different surfac
> Of course - that's why the feature's there!
> Just create a different SDL_Surface(3), probably using something like
> SDL_CreateRGBSurface(3) and friends.
> Gary (-;

More information about the smpeg mailing list