[SDL] Screenshot problems
jolynsbass at hotmail.com
Sat Jan 29 08:45:34 PST 2005
why not just blank your screen(FillRect) BEFORE doing all of the drawing &
screen flip? That way, you don't need to move your screenshot function, and
it doesn't interrupt the "flow" of your program design. Just my 2 cents...
----- Original Message -----
From: "Henrik" <drx at drx.dk>
To: <sdl at libsdl.org>
Sent: Saturday, January 29, 2005 8:54 AM
Subject: [SDL] Screenshot problems
> Im having problems accessing the current visible surface.
> I use SDL_SaveBMP( SDL_GetVideoSurface(), file ); to take a screenshot
> (Im not using OGL) but this image is black.
> I think i know why its black, I flip and clear the surface I use for
> like this:
> SDL_FillRect(sdlSurf, NULL, 0x000000);
> where sdlSurf = SDL_SetVideoMode(width, height, depth, VideoFlags);
> Apperently SDL_GetVideoSurface() doesn't return the surface that are
> the moment, I read this post
> that's almost the same problem I have, has this been solved ?
> I could just take a screenshot before i call Flip but will interrupt the
> my program and look very ugly.
> SDL mailing list
> SDL at libsdl.org
More information about the SDL