Minor fixes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15473 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-12-10 20:03:19 +00:00
parent a41a0db6f2
commit 050bf31477

View File

@ -295,6 +295,7 @@ StarWindow::DirectConnected(direct_buffer_info *info)
SwitchContext(info); // update the direct screen infos.
release_sem(drawing_lock); // unblock the animation thread.
break;
default:
break;
}
@ -525,13 +526,14 @@ StarWindow::StarAnimation(void *data)
// loop, frame after frame, until asked to quit.
while (!w->kill_my_thread) {
// we want a frame to take at least 16 ms.
time = system_time()+16000;
// get the right to do direct screen access.
acquire_sem(w->drawing_lock);
if (w->kill_my_thread) break;
while (acquire_sem(w->drawing_lock) == B_INTERRUPTED)
;
if (w->kill_my_thread)
break;
// go through the array of star, for all currently used star.
s = w->star_list;