hi:
How can I use SDL to display a bmp on qtopia platform?
my qtopia run on a linux-based virtual framebuffer.
below are steps of building SDL with qtopia support.
./configure --enable-video-qtopia
make
make install
qvfb &
qpe &
when I click the button in my example qtopia application, nothing happened!
belows is code in my click function:
surface = SDL_LoadBMP("/home/sgj/qtopiaexam/example.bmp");
if (surface == NULL)
{
close();
return;
}
dest.x = dest.y = 0;
dest.w = surface->w;
dest.h = surface->h;
screen = SDL_SetVideoMode(dest.w, dest.h, 32, SDL_SWSURFACE);
if (screen == NULL)
{
SDL_FreeSurface(surface);
close();
return;
}
SDL_BlitSurface(surface,NULL,screen,& dest);
SDL_UpdateRects(screen, 1, &dest);========================================================
??? ??? VIP??? ??? http://vip.163.com
??? 25???4??? http://mail.163.com
??? ??? http://popo.163.com