2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include "intuition_intern.h"
9 /*****************************************************************************
12 #include <proto/intuition.h>
14 AROS_LH2(UWORD
, PubScreenStatus
,
17 AROS_LHA(struct Screen
*, Scr
, A0
),
18 AROS_LHA(UWORD
, StatusFlags
, D0
),
21 struct IntuitionBase
*, IntuitionBase
, 92, Intuition
)
24 Change the status flags for a given public screen.
27 Scr - The screen the flags of which to change.
28 StatusFlags - The new values for the flags, see <intuition/screens.h>
29 for further information on the flag bits.
32 Clears bit 0 if the screen wasn't public or if it was impossible
33 to make private (PSNF_PRIVATE) as visitor windows are open on it.
34 The other bits in the return value are reserved for future use.
48 *****************************************************************************/
54 SANITY_CHECKR(Scr
,FALSE
)
60 (GetPrivScreen(Scr
)->pubScrNode
== NULL
)
63 (StatusFlags
& PSNF_PRIVATE
)
65 (GetPrivScreen(Scr
)->pubScrNode
->psn_VisitorCount
!= 0)
73 GetPrivScreen(Scr
)->pubScrNode
->psn_Flags
= StatusFlags
;
77 UnlockPubScreenList();
79 FireScreenNotifyMessage((IPTR
) Scr
, SNOTIFY_PUBSCREENSTATE
, IntuitionBase
);
84 } /* PubScreenStatus */