mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-25 19:13:46 +08:00
debug
This commit is contained in:
@@ -3720,8 +3720,10 @@ static BOOL DRM_WaitVBlank(_THIS)
|
||||
(this->hidden->crtc_idx << DRM_VBLANK_HIGH_CRTC_SHIFT);
|
||||
vbl.request.sequence = 1;
|
||||
vbl.request.signal = 0;
|
||||
if (drmWaitVBlank(this->hidden->dev_fd, &vbl))
|
||||
if (drmWaitVBlank(this->hidden->dev_fd, &vbl)) {
|
||||
_WRN_PRINTF("Failed drmWaitVBlank: %m\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -630,8 +630,11 @@ static void *task_do_update(void *data)
|
||||
sem_post(&this->hidden->sync_sem);
|
||||
|
||||
do {
|
||||
if (this->WaitVBlank) {
|
||||
this->WaitVBlank(this);
|
||||
GAL_VideoDevice *real_device;
|
||||
real_device = this->hidden->realfb_info->real_device;
|
||||
|
||||
if (real_device->WaitVBlank) {
|
||||
real_device->WaitVBlank(this);
|
||||
}
|
||||
else {
|
||||
usleep(this->hidden->update_interval * 1000);
|
||||
@@ -678,8 +681,6 @@ static void *task_do_update(void *data)
|
||||
update_rect.w = RECTW(dirty_rect);
|
||||
update_rect.h = RECTH(dirty_rect);
|
||||
|
||||
GAL_VideoDevice *real_device;
|
||||
real_device = this->hidden->realfb_info->real_device;
|
||||
if (real_device->UpdateRects)
|
||||
real_device->UpdateRects(real_device, 1, &update_rect);
|
||||
if (real_device->SyncUpdate)
|
||||
|
||||
Reference in New Issue
Block a user