2 Copyright © 1995-2007, 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 update this routine should be
33 called so the regular cliprects of the layer can be installed.
38 flag - TRUE if the update was complete. The damage list is disposed.
39 FALSE it the update was partial. The damage list is kept.
56 27-11-96 digulla automatically created from
57 layers_lib.fd and clib/layers_protos.h
59 *****************************************************************************/
64 ** must reset the flag NOW !! Keep this order!!
66 l
->Flags
&= ~LAYERUPDATING
;
68 if (NULL
!= l
->ClipRect
)
70 if (IS_SMARTREFRESH(l
))
71 _CopyClipRectsToClipRects(l
,
81 _FreeClipRectListBM(l
,l
->ClipRect
, LayersBase
);
89 /* the update was complete so I free the damage list */
90 ClearRegion(l
->DamageList
);
91 l
->Flags
&= ~LAYERREFRESH
;