2 Copyright 1995-2010, 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
)
25 Change the status flags for a given public screen.
29 Scr -- The screen the flags of which to change.
30 StatusFlags -- The new values for the flags, see <intuition/screens.h>
31 for further information on the flag bits.
35 Clears bit 0 if the screen wasn't public or if it was impossible
36 to make private (PSNF_PRIVATE) as visitor windows are open on it.
37 The other bits in the return value are reserved for future use.
53 *****************************************************************************/
54 #define GPB(x) GetPrivIBase(x)
61 SANITY_CHECKR(Scr
,FALSE
)
67 (GetPrivScreen(Scr
)->pubScrNode
== NULL
)
70 (StatusFlags
& PSNF_PRIVATE
)
72 (GetPrivScreen(Scr
)->pubScrNode
->psn_VisitorCount
!= 0)
80 GetPrivScreen(Scr
)->pubScrNode
->psn_Flags
= StatusFlags
;
84 UnlockPubScreenList();
86 FireScreenNotifyMessage((IPTR
) Scr
, SNOTIFY_PUBSCREENSTATE
, IntuitionBase
);
91 } /* PubScreenStatus */