2 Copyright © 1995-2001, 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 *****************************************************************************/
62 AROS_LIBBASE_EXT_DECL(struct LayersBase
*,LayersBase
)
65 ** must reset the flag NOW !! Keep this order!!
67 l
->Flags
&= ~LAYERUPDATING
;
69 if (NULL
!= l
->ClipRect
)
71 if (IS_SMARTREFRESH(l
))
72 _CopyClipRectsToClipRects(l
,
82 _FreeClipRectListBM(l
,l
->ClipRect
, LayersBase
);
90 /* the update was complete so I free the damage list */
91 ClearRegion(l
->DamageList
);
92 l
->Flags
&= ~LAYERREFRESH
;