wait_for_vblank() will now only wait 25ms at maximum (40Hz) - this is needed because
there is no VBlank interrupt when the display is turned off (and the code to turn it on again actually calls wait_for_vblank()...). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17597 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0b10fd4841
commit
178d3441ad
@ -105,7 +105,9 @@ create_mode_list(void)
|
||||
void
|
||||
wait_for_vblank(void)
|
||||
{
|
||||
acquire_sem(gInfo->shared_info->vblank_sem);
|
||||
acquire_sem_etc(gInfo->shared_info->vblank_sem, 1, B_RELATIVE_TIMEOUT, 25000);
|
||||
// With the output turned off via DPMS, we might not get any interrupts anymore
|
||||
// that's why we don't wait forever for it.
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user