mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-23 08:33:55 +08:00
tune
This commit is contained in:
@@ -856,7 +856,7 @@ static GAL_Surface *FB_SetVideoMode(_THIS, GAL_Surface *current,
|
||||
#endif
|
||||
|
||||
/* create shadow screen */
|
||||
this->hidden->shadow_screen = GAL_CreateRGBSurface (GAL_SWSURFACE,
|
||||
this->hidden->shadow_screen = GAL_CreateRGBSurface (GAL_HWSURFACE,
|
||||
current->w, current->h,
|
||||
current->format->BitsPerPixel,
|
||||
current->format->Rmask, current->format->Gmask,
|
||||
|
||||
@@ -577,13 +577,11 @@ static void schedule_updaters(_THIS, RECT *dirty_rc)
|
||||
int h = RECTHP(dirty_rc);
|
||||
int i;
|
||||
|
||||
/* always use updaters
|
||||
if (h < this->hidden->nr_updaters || (w * h) < MIN_PIXELS_USING_UPDATER) {
|
||||
shadow_fb_ops.refresh(_shadowfbheader,
|
||||
this->hidden->realfb_info, dirty_rc);
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
/* partition the dirty rectangle horizontally */
|
||||
int span = h / (this->hidden->nr_updaters);
|
||||
@@ -720,9 +718,10 @@ static int create_extra_updaters(_THIS)
|
||||
}
|
||||
pthread_attr_destroy(&attr);
|
||||
|
||||
/*
|
||||
for (int i = 0; i < this->hidden->nr_updaters; i++) {
|
||||
sem_post(&this->hidden->sync_sem);
|
||||
}
|
||||
}*/
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user