mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-10 17:02:35 +08:00
modify graph_gfx.setfbinfo
This commit is contained in:
parent
cebbdb7edd
commit
9831eb08bb
@ -46,7 +46,7 @@ int UIEventSource::handleEvents(){
|
|||||||
while(!mRunnables.empty()){
|
while(!mRunnables.empty()){
|
||||||
//maybe user will removed runnable itself in its runnable'proc,so we use removed flag to flag it
|
//maybe user will removed runnable itself in its runnable'proc,so we use removed flag to flag it
|
||||||
RUNNER runner = mRunnables.front();
|
RUNNER runner = mRunnables.front();
|
||||||
if(runner.time>nowms)break;
|
if(runner.time > nowms)break;
|
||||||
mRunnables.pop_front();
|
mRunnables.pop_front();
|
||||||
if(runner.run)runner.run();
|
if(runner.run)runner.run();
|
||||||
}
|
}
|
||||||
|
@ -293,10 +293,6 @@ static int setfbinfo(FBSURFACE*surf) {
|
|||||||
int rc=-1;
|
int rc=-1;
|
||||||
FBDEVICE*dev=&devs[surf->dispid];
|
FBDEVICE*dev=&devs[surf->dispid];
|
||||||
struct fb_var_screeninfo*v=&dev->var;
|
struct fb_var_screeninfo*v=&dev->var;
|
||||||
v->xres = surf->width;
|
|
||||||
v->yres = surf->height;
|
|
||||||
v->xres_virtual = surf->width;
|
|
||||||
v->yres_virtual = surf->height;
|
|
||||||
v->bits_per_pixel=32;
|
v->bits_per_pixel=32;
|
||||||
switch(surf->format) {
|
switch(surf->format) {
|
||||||
case GPF_ARGB:
|
case GPF_ARGB:
|
||||||
|
Loading…
Reference in New Issue
Block a user