Normal behaviour?

Is the following normal/wanted behavouir ??

WINDOWS 95, DX 8.0 :

SDL_Init (SDL_INIT_VIDEO);

screen=SDL_SetVideoMode (640,480,24,SDL_HWPALETTE|SDL_SWSURFACE|
SDL_DOUBLEBUF|SDL_FULLSCREEN);

When i now blit something to screen like
SDL_BlitSurface (picture,NULL,screen,&rect);
it is directly visible.

I don?t have to call SDL_Flip (screen) to see it.

Is this wanted ???

CU

Sorry for the posting but perhaps some windows app crashed and made
it possible that any blitting to the screen was directly visible.

CU

“Torsten Giebl” schrieb im Newsbeitrag news:9m6qb0$c68$1 at ftp.lokigames.com…> Is the following normal/wanted behavouir ??

WINDOWS 95, DX 8.0 :

SDL_Init (SDL_INIT_VIDEO);

screen=SDL_SetVideoMode (640,480,24,SDL_HWPALETTE|SDL_SWSURFACE|
SDL_DOUBLEBUF|SDL_FULLSCREEN);

When i now blit something to screen like
SDL_BlitSurface (picture,NULL,screen,&rect);
it is directly visible.

I don?t have to call SDL_Flip (screen) to see it.

Is this wanted ???

CU

Check if screen->flags really has SDL_DOUBLEBUF set. SetVideoMode() will not
fail, if dblbuf is not available and you end up with a plain hw surface.On Saturday 25 August 2001 02:42, you wrote:

Is the following normal/wanted behavouir ??

WINDOWS 95, DX 8.0 :

SDL_Init (SDL_INIT_VIDEO);

screen=SDL_SetVideoMode (640,480,24,SDL_HWPALETTE|SDL_SWSURFACE|
SDL_DOUBLEBUF|SDL_FULLSCREEN);

When i now blit something to screen like
SDL_BlitSurface (picture,NULL,screen,&rect);
it is directly visible.

I don?t have to call SDL_Flip (screen) to see it.

Is this wanted ???

Benjamin Niemann (P!\K)
pink at odahoda.de
http://www.odahoda.de