2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <aros/libcall.h>
9 #include <graphics/clip.h>
10 #include <exec/types.h>
11 #include <proto/exec.h>
12 #include <graphics/layers.h>
13 #include <proto/graphics.h>
14 #include <proto/layers.h>
15 #include "layers_intern.h"
16 #include "basicfuncs.h"
18 /*****************************************************************************
22 AROS_LH2(void, EndUpdate
,
25 AROS_LHA(struct Layer
*, l
, A0
),
26 AROS_LHA(UWORD
, flag
, D0
),
29 struct LayersBase
*, LayersBase
, 14, Layers
)
32 After the damaged areas are updated, this routine should be
33 called so the regular cliprects of the layer can be installed.
37 flag - TRUE if the update was complete. The damage list is disposed.
38 FALSE it the update was partial. The damage list is kept.
54 *****************************************************************************/
59 ** must reset the flag NOW !! Keep this order!!
61 l
->Flags
&= ~LAYERUPDATING
;
63 if (NULL
!= l
->ClipRect
)
65 if (IS_SMARTREFRESH(l
))
66 _CopyClipRectsToClipRects(l
,
76 _FreeClipRectListBM(l
,l
->ClipRect
, LayersBase
);
84 /* the update was complete so I free the damage list */
85 ClearRegion(l
->DamageList
);
86 l
->Flags
&= ~LAYERREFRESH
;