09-27-2012, 10:56 AM
|
#18
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
any bets on:
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];
system("eips '' && usleep 80000");
return(0);
}
|
From ENABLE_DIAGS?
|
|
|