2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
5 Desc: Graphics function CloseMonitor()
8 #include <aros/debug.h>
9 #include <graphics/monitor.h>
11 #include "graphics_intern.h"
13 /*****************************************************************************
16 #include <proto/graphics.h>
18 AROS_LH1(LONG
, CloseMonitor
,
21 AROS_LHA(struct MonitorSpec
*, monitor_spec
, A0
),
24 struct GfxBase
*, GfxBase
, 120, Graphics
)
29 monitor_spec - pointer to a MonitorSpec opened via OpenMonitor(),
33 error - FALSE if MonitorSpec closed uneventfully
34 TRUE if MonitorSpec could not be closed
43 OpenMonitor(), graphics/monitor.h
50 ******************************************************************************/
56 ObtainSemaphore(&monitor_spec
->DisplayInfoDataBaseSemaphore
);
58 if (monitor_spec
->ms_OpenCount
) {
59 monitor_spec
->ms_OpenCount
--;
63 ReleaseSemaphore(&monitor_spec
->DisplayInfoDataBaseSemaphore
);