* Automatic whitespace cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32739 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -262,8 +262,8 @@ bool ProjectStar(star *s, geometry *geo)
|
|||||||
which pixel of the star matrix are visible (if any). This depend of the
|
which pixel of the star matrix are visible (if any). This depend of the
|
||||||
clipping of the specific buffer you're using. This function will do that
|
clipping of the specific buffer you're using. This function will do that
|
||||||
for the star (s), in the buffer (buf). It will return false if the star
|
for the star (s), in the buffer (buf). It will return false if the star
|
||||||
is fully invisible, true if not. The falg reset_clipping is used to
|
is fully invisible, true if not. The flag reset_clipping is used to
|
||||||
reprocess the clipping from scratsh, or to just cumulate the new clipping
|
reprocess the clipping from scratch, or to just cumulate the new clipping
|
||||||
to the last drawing clipping (this is needed when updating the clipping
|
to the last drawing clipping (this is needed when updating the clipping
|
||||||
of every stars after changing the clipping region of the buffer). */
|
of every stars after changing the clipping region of the buffer). */
|
||||||
bool CheckClipping(star *s, buffer *buf, bool reset_clipping)
|
bool CheckClipping(star *s, buffer *buf, bool reset_clipping)
|
||||||
@@ -578,9 +578,10 @@ void RefreshStarPacket(buffer *buf, star_packet *sp, geometry *geo)
|
|||||||
|
|
||||||
/* For star that were process at the previous frame but that we don't
|
/* For star that were process at the previous frame but that we don't
|
||||||
want to process anymore, we just need to erase them. */
|
want to process anymore, we just need to erase them. */
|
||||||
for (; i<sp->erase_count; s++, i++)
|
for (; i<sp->erase_count; s++, i++) {
|
||||||
if (s->last_draw_offset != INVALID)
|
if (s->last_draw_offset != INVALID)
|
||||||
EraseStar(s, buf);
|
EraseStar(s, buf);
|
||||||
|
}
|
||||||
|
|
||||||
/* For star that were not process before, but are now, we just need to
|
/* For star that were not process before, but are now, we just need to
|
||||||
go through the projection, clipping and drawing steps. */
|
go through the projection, clipping and drawing steps. */
|
||||||
@@ -602,9 +603,10 @@ void RefreshClipping(buffer *buf, star_packet *sp)
|
|||||||
int32 i;
|
int32 i;
|
||||||
|
|
||||||
s = sp->list;
|
s = sp->list;
|
||||||
for (i=0; i<sp->erase_count; s++, i++)
|
for (i=0; i<sp->erase_count; s++, i++) {
|
||||||
if (s->last_draw_offset != INVALID)
|
if (s->last_draw_offset != INVALID)
|
||||||
CheckClipping(s, buf, false);
|
CheckClipping(s, buf, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2137,8 +2137,10 @@ ChartWindow::Animation(void *data)
|
|||||||
done to avoid any potential deadlock. */
|
done to avoid any potential deadlock. */
|
||||||
while (acquire_sem(w->fDrawingLock) == B_INTERRUPTED)
|
while (acquire_sem(w->fDrawingLock) == B_INTERRUPTED)
|
||||||
;
|
;
|
||||||
|
|
||||||
if (w->fDirectConnected)
|
if (w->fDirectConnected)
|
||||||
w->RefreshStars(&w->fDirectBuffer, time_factor * 2.4);
|
w->RefreshStars(&w->fDirectBuffer, time_factor * 2.4);
|
||||||
|
|
||||||
release_sem(w->fDrawingLock);
|
release_sem(w->fDrawingLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2890,7 +2892,7 @@ ChartWindow::DirectConnected(direct_buffer_info *info)
|
|||||||
void
|
void
|
||||||
ChartWindow::SwitchContext(direct_buffer_info *info)
|
ChartWindow::SwitchContext(direct_buffer_info *info)
|
||||||
{
|
{
|
||||||
uint32 i, j;
|
uint32 i, j;
|
||||||
|
|
||||||
/* you need to use that mask to read the buffer state. */
|
/* you need to use that mask to read the buffer state. */
|
||||||
switch (info->buffer_state & B_DIRECT_MODE_MASK) {
|
switch (info->buffer_state & B_DIRECT_MODE_MASK) {
|
||||||
@@ -2960,8 +2962,8 @@ ChartWindow::SwitchContext(direct_buffer_info *info)
|
|||||||
be made invisible by the extra animation view clipping */
|
be made invisible by the extra animation view clipping */
|
||||||
fDirectBuffer.clip_list_count = j;
|
fDirectBuffer.clip_list_count = j;
|
||||||
|
|
||||||
/* the bounding box of the clipping list need to be calculate again
|
/* the bounding box of the clipping list need to be calculated again
|
||||||
from scratsh. Clipping the bounding box of the window clipping
|
from scratch. Clipping the bounding box of the window clipping
|
||||||
region to the animation view can give us an incorrect (larger)
|
region to the animation view can give us an incorrect (larger)
|
||||||
bounding box. Remember that the bounding box of a region is
|
bounding box. Remember that the bounding box of a region is
|
||||||
required to be minimal */
|
required to be minimal */
|
||||||
|
|||||||
Reference in New Issue
Block a user