[SDL] SDL_SetVideoMode not working
Jonathan Dearborn
grimfang4 at hotmail.com
Mon Dec 18 06:48:07 PST 2006
The easy way to tell if it's bits or bytes is by context. 4 bpp definitely means 'bytes' because 4bytes x 8bytes/bit = 32 bits, a very common number for bits per pixel, especially if his resolution is a 'standard 800x600'.
> Date: Sun, 17 Dec 2006 21:49:22 +0100> From: neckelmann at gmail.com> To: sdl at libsdl.org> Subject: Re: [SDL] SDL_SetVideoMode not working> > On 12/17/06, Edward Byard <e_byard at yahoo.co.uk> wrote:> > SrcDisplay remains NULL so what's going on?? My video card supports hw> > surfaces, 4 bpp and a standard 800x600 res so I can't see any problems on a> > hardware level...> > 4 bpp? Is that short for 4 bits per pixel (16 colors) or 4 bytes per> pixel? SDL_SetVideoMode()'s color-depth argument is in bits, not> bytes.> > I don't know, but I could imagine that your system won't run with a> 4-bit hardware surface.> > -- > Rasmus Neckelmann> > _______________________________________________> SDL mailing list> SDL at libsdl.org> http://www.libsdl.org/mailman/listinfo/sdl
_________________________________________________________________
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=hmtag1&loc=us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20061218/534766f9/attachment.html
More information about the SDL
mailing list