2 Copyright 1995-2007, 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.
52 21-06-98 SDuvan Implemented
54 *****************************************************************************/
55 #define GPB(x) GetPrivIBase(x)
62 SANITY_CHECKR(Scr
,FALSE
)
66 if (GetPrivScreen(Scr
)->pubScrNode
== NULL
||
67 GetPrivScreen(Scr
)->pubScrNode
->psn_VisitorCount
!= 0)
73 GetPrivScreen(Scr
)->pubScrNode
->psn_Flags
= StatusFlags
;
77 UnlockPubScreenList();
79 FireScreenNotifyMessage((IPTR
) Scr
, SNOTIFY_PUBSCREENSTATE
, IntuitionBase
);
84 } /* PubScreenStatus */