int
WIN_VideoInit(_THIS)
{
    if (WIN_InitModes(_this) < 0) {
        return -1;
    }

#if SDL_VIDEO_RENDER_D3D
    D3D_AddRenderDriver(_this);
#endif
#if SDL_VIDEO_RENDER_DDRAW
    DDRAW_AddRenderDriver(_this);
#endif
#if SDL_VIDEO_RENDER_GDI
    GDI_AddRenderDriver(_this);
#endif
#if SDL_VIDEO_RENDER_GAPI
    WINCE_AddRenderDriver(_this);
#endif

    WIN_InitKeyboard(_this);
    WIN_InitMouse(_this);

    return 0;
}
示例#2
0
int
WIN_VideoInit(_THIS)
{
    WIN_InitModes(_this);

#if SDL_VIDEO_RENDER_D3D
    D3D_AddRenderDriver(_this);
#endif
#if SDL_VIDEO_RENDER_GDI
    GDI_AddRenderDriver(_this);
#endif

    g_hCtx = SDL_malloc(sizeof(HCTX));
    WIN_InitKeyboard(_this);
    WIN_InitMouse(_this);

    return 0;
}