[SDL] SDL_VideoInfo in 1.3 missing elements

Marty Leisner leisner at rochester.rr.com
Sat Nov 15 11:38:17 PST 2008


In SVN 1.3 in SDL_compat.h:

typedef struct SDL_VideoInfo
{
    Uint32 hw_available:1;
    Uint32 wm_available:1;
    Uint32 UnusedBits1:6;
    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;
    Uint32 UnusedBits3:16;
    Uint32 video_mem;

    SDL_PixelFormat *vfmt;
} SDL_VideoInfo;

In 1.2.13 SDL_Video:
/* Useful for determining the video hardware capabilities */
typedef struct SDL_VideoInfo {
        Uint32 hw_available :1; /* Flag: Can you create hardware surfaces? */
        Uint32 wm_available :1; /* Flag: Can you talk to a window manager? */
        Uint32 UnusedBits1  :6;
        Uint32 UnusedBits2  :1;
        Uint32 blit_hw      :1; /* Flag: Accelerated blits HW --> HW */
        Uint32 blit_hw_CC   :1; /* Flag: Accelerated blits with Colorkey */
        Uint32 blit_hw_A    :1; /* Flag: Accelerated blits with Alpha */
        Uint32 blit_sw      :1; /* Flag: Accelerated blits SW --> HW */
        Uint32 blit_sw_CC   :1; /* Flag: Accelerated blits with Colorkey */
        Uint32 blit_sw_A    :1; /* Flag: Accelerated blits with Alpha */
        Uint32 blit_fill    :1; /* Flag: Accelerated color fill */
        Uint32 UnusedBits3  :16;
        Uint32 video_mem;       /* The total amount of video memory (in K) */
        SDL_PixelFormat *vfmt;  /* Value: The format of the video surface */
        int    current_w;       /* Value: The current video mode width */
        int    current_h;       /* Value: The current video mode height */
} SDL_VideoInfo;


Its missing current_w/current_h.

But more pressing -- there seems to be "radical" changes in a number of places --
is there anything which explains the changes (besdies examining the source?)

marty



More information about the SDL mailing list