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 if (monitor_spec
!= NULL
) {
57 ObtainSemaphore(&monitor_spec
->DisplayInfoDataBaseSemaphore
);
59 if (monitor_spec
->ms_OpenCount
) {
60 monitor_spec
->ms_OpenCount
--;
64 ReleaseSemaphore(&monitor_spec
->DisplayInfoDataBaseSemaphore
);