Don't call InvertPixelArray with negative width and/or height.
[tangerine.git] / workbench / libs / muimaster / mui_endrefresh.c
blob3c3de28a5e4f45e36b115bb7c5d2957e1eac9c97
1 /*
2 Copyright © 2002-2003, 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, 29, MUIMaster)
25 /* FUNCTION
27 INPUTS
29 RESULT
31 NOTES
33 EXAMPLE
35 BUGS
36 The function itself is a bug ;-) Remove it!
38 SEE ALSO
40 INTERNALS
42 HISTORY
44 *****************************************************************************/
46 AROS_LIBFUNC_INIT
47 AROS_LIBBASE_EXT_DECL(struct MUIMasterBase *,MUIMasterBase)
49 struct Window *w = mri->mri_Window;
51 if (w == NULL)
52 return;
54 EndRefresh(w, TRUE);
55 UnlockLayerInfo(&w->WScreen->LayerInfo);
56 mri->mri_Flags &= ~MUIMRI_REFRESHMODE;
57 return;
59 AROS_LIBFUNC_EXIT
61 } /* MUIA_EndRefresh */