New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / intuition / endrefresh.c
blob9cffa008d6193686ff324b5b6150513ba7b254b9
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include <proto/layers.h>
8 #include <proto/graphics.h>
9 #include "intuition_intern.h"
11 /*****************************************************************************
13 NAME */
14 #include <proto/intuition.h>
16 AROS_LH2(void, EndRefresh,
18 /* SYNOPSIS */
19 AROS_LHA(struct Window *, window, A0),
20 AROS_LHA(BOOL , complete, D0),
22 /* LOCATION */
23 struct IntuitionBase *, IntuitionBase, 61, Intuition)
25 /* FUNCTION
27 INPUTS
29 RESULT
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
39 INTERNALS
41 *****************************************************************************/
43 AROS_LIBFUNC_INIT
44 AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
46 DEBUG_REFRESH(dprintf("EndRefresh: Window 0x%lx Complete %d\n", window, complete));
48 SANITY_CHECK(window)
50 /* Check whether the BeginRefresh was aborted due to a FALSE=BeginUpdate()*/
51 if (window->Flags & WFLG_WINDOWREFRESH)
52 EndUpdate(WLAYER(window), complete);
54 /* reset all bits indicating a necessary or ongoing refresh */
55 AROS_ATOMIC_AND(window->Flags, ~WFLG_WINDOWREFRESH);
57 /* I reset this one only if Complete is TRUE!?! */
58 if (TRUE == complete)
59 WLAYER(window)->Flags &= ~LAYERREFRESH;
61 /* Unlock the layers. */
62 UnlockLayer(WLAYER(window));
64 if (BLAYER(window))
65 UnlockLayer(BLAYER(window));
67 UnlockLayerInfo(&window->WScreen->LayerInfo);
69 AROS_LIBFUNC_EXIT
70 } /* EndRefresh */