static SDL_Surface *g_screen;
static void *g_screen_fbp;
static Uint16 g_8bpp_pal[256];
static SDL_Surface *g_screen;
static void *g_screen_fbp;
static Uint16 g_8bpp_pal[256];
DECLSPEC SDL_Surface * SDLCALL
SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
{
DECLSPEC SDL_Surface * SDLCALL
SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
{
trace("%d, %d, %d, %08x", width, height, bpp, flags);
trace("%d, %d, %d, %08x", width, height, bpp, flags);
- fbdev = vout_fbdev_init("/dev/fb0", &width, &height, 0);
- if (fbdev == NULL)
+ ret = osdl_video_set_mode(&state, width, height, 16);
+ if (ret < 0)