This commit is contained in:
Vincent Wei
2023-07-11 09:02:21 +08:00
parent 872e299ad9
commit b7625c5726
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -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,
+2 -3
View File
@@ -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;
}