[SDL] :1 ?

Luke J Crook lcluke at wsbnet.com
Mon Jul 22 16:04:01 PDT 2002


First, thanks to all who answered my question.

I performed a sizeof() on the SDL_VideoInfo struct (excluding the
SDL_PixelFormat field), which returned 8 bytes total

typedef struct {
 Uint32 hw_available :1;
 Uint32 wm_available :1;
 Uint32 UnusedBits1  :6;
// == 1 byte
 Uint32 UnusedBits2  :1;
 Uint32 blit_hw      :1;
 Uint32 blit_hw_CC   :1;
 Uint32 blit_hw_A    :1;
 Uint32 blit_sw      :1;
 Uint32 blit_sw_CC   :1;
 Uint32 blit_sw_A    :1;
 Uint32 blit_fill    :1;
// == 1 byte
 Uint32 UnusedBits3  :16;
// == 2 bytes
 Uint32 video_mem;
// == 4 bytes
// SDL_PixelFormat *vfmt;
} SDL_VideoInfo;

-Luke

----- Original Message -----
From: "Joseph Carter" <knghtbrd at bluecherry.net>
To: <sdl at libsdl.org>
Sent: Monday, July 22, 2002 3:32 PM
Subject: Re: [SDL] :1 ?







More information about the SDL mailing list