2 Copyright © 2002-2007, The AROS Development Team. All rights reserved.
6 #include <proto/graphics.h>
7 #include <proto/layers.h>
8 #include <proto/intuition.h>
9 #include <proto/muimaster.h>
12 #include "muimaster_intern.h"
14 /*****************************************************************************
17 AROS_LH2(BOOL
, MUI_BeginRefresh
,
20 AROS_LHA( struct MUI_RenderInfo
*, mri
, A0
),
21 AROS_LHA(ULONG
, flags
, D0
),
24 struct Library
*, MUIMasterBase
, 32, MUIMaster
)
42 *****************************************************************************/
46 struct Window
*w
= mri
->mri_Window
;
49 if ((w
== NULL
) || !(w
->Flags
& WFLG_SIMPLE_REFRESH
))
54 /* doesn't need refreshing */
55 if (!(l
->Flags
& LAYERREFRESH
))
58 /* already refreshing */
59 if (mri
->mri_Flags
& MUIMRI_REFRESHMODE
)
62 mri
->mri_Flags
|= MUIMRI_REFRESHMODE
;
63 LockLayerInfo(&w
->WScreen
->LayerInfo
);
69 } /* MUIA_BeginRefresh */