Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / workbench / libs / muimaster / mui_endrefresh.c
blob7fa3c2a321fc73600242ef9cb30edca03c42ca18
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, 29, MUIMaster)
25 /* FUNCTION
27 INPUTS
29 RESULT
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
39 INTERNALS
41 HISTORY
43 *****************************************************************************/
45 AROS_LIBFUNC_INIT
47 struct Window *w = mri->mri_Window;
49 if (w == NULL)
50 return;
52 EndRefresh(w, TRUE);
53 UnlockLayerInfo(&w->WScreen->LayerInfo);
54 mri->mri_Flags &= ~MUIMRI_REFRESHMODE;
55 return;
57 AROS_LIBFUNC_EXIT
59 } /* MUIA_EndRefresh */