revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / muimaster / mui_endrefresh.c
blob8176f5a3db80b19244cf93d091267b9efe0da463
1 /*
2 Copyright © 2002-2007, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/layers.h>
7 #include <proto/graphics.h>
8 #include <proto/intuition.h>
9 #include <proto/muimaster.h>
11 #include "mui.h"
12 #include "muimaster_intern.h"
14 /*****************************************************************************
16 NAME */
17 AROS_LH2(VOID, MUI_EndRefresh,
19 /* SYNOPSIS */
20 AROS_LHA(struct MUI_RenderInfo *, mri, A0),
21 AROS_LHA(ULONG, flags, D0),
23 /* LOCATION */
24 struct Library *, MUIMasterBase, 33, MUIMaster)
25 /* FUNCTION
27 INPUTS
29 RESULT
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
39 INTERNALS
41 *****************************************************************************/
43 AROS_LIBFUNC_INIT
45 struct Window *w = mri->mri_Window;
47 if (w == NULL)
48 return;
50 EndRefresh(w, TRUE);
51 UnlockLayerInfo(&w->WScreen->LayerInfo);
52 mri->mri_Flags &= ~MUIMRI_REFRESHMODE;
53 return;
55 AROS_LIBFUNC_EXIT
57 } /* MUIA_EndRefresh */