[SDL] Re: direct access to video memory

Alexander Chemeris alchemist at arctur.icb.psn.ru
Wed Jan 24 00:13:44 PST 2001

On Tue, Jan 23, 2001 at 10:02:38AM -0800, Gautier Portet wrote:
> > Writing to the pointer returned by SDL_GetVideoSurface()
> > need SDL_UpdateRect() to be showed on the screen.
> > I used SDL 1.0.8 on Win98 with BCB4.0 (fuulscreen).
> > What is wrong?
> if you call SDL_SetVideoMode with SDL_FULLSCREEN only (NOT SDL_DOUBLEBUF)
> you DO have direct video memory access (at least under win/dx)

This is extraction from my code:

SDL_Surface *video;
video = SDL_GetVideoSurface();

So, cursor DIDN'T show on the screen.
But, after adding


it did.

Alexander Chemeris	

More information about the SDL mailing list