sdl@lists.libsdl.org
[Top] [All Lists]

Re: [SDL] suface flags question

Subject: Re: [SDL] suface flags question
From: Brian
Date: Tue, 17 Jul 2007 10:09:18 +0100
Hi.

A lot of the SDL flags may not be available. SDL tries to give you as
close to what you asked for. However, on linux I believe you cannot
get a hardware surface without running as root (which is a bit much ),
and on windows I think you can only get a hardware surface in
fullscreen mode. The video drive affects the flags available too, it's
different under GDI and DirectDraw. I don't know what SDL_HWACCEL
does, I think its probably an internal flag you shoudln't be setting.

On 17/07/07, Bob Self <bobself@xxxxxxxxxxx> wrote:
>
> I'm creating a SDL_Surface with these flags:
> unsigned long flags = SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL | 
> SDL_DOUBLEBUF;              // 0x40000115
> surface = SDL_SetVideoMode(1200, 800, 0, flags);
>
> I'm then looking at the surface flags and see that it is this:
> surface->flags = 0x00000010
>
> Why isn't surface->flags equal to flags? I thought this should be 0x40000115
> instead of 0x00000010.
_______________________________________________
SDL mailing list
SDL@xxxxxxxxxxxxxxxx
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

<Prev in Thread] Current Thread [Next in Thread>