Quote:
static int FB_FlipHWSurface(_THIS, SDL_Surface *surface)
{
if ( switched_away ) {
return -2; /* no hardware access */
}
/* Wait for vertical retrace and then flip display */
cache_vinfo.yoffset = flip_page*surface->h;
if ( FB_IsSurfaceBusy(this->screen) ) {
FB_WaitBusySurfaces(this);
}
wait_vbl(this);
if ( ioctl(console_fd, FBIOPAN_DISPLAY, &cache_vinfo) < 0 ) {
SDL_SetError("ioctl(FBIOPAN_DISPLAY) failed");
return(-1);
}
flip_page = !flip_page;
surface->pixels = flip_address[flip_page];
return(0);
}
|
seems another likely vector in that code
FBCON_ROTATE_CW seems a handy
rotate flag
EDIT: I see nowhere else of interest. All duplicated stuff for VGA or 16 bit work.