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_LH1(void, SetDefaultPubScreen
,
17 AROS_LHA(UBYTE
*, name
, A0
),
20 struct IntuitionBase
*, IntuitionBase
, 90, Intuition
)
23 Specifies the default public screen for visitor windows to open up on.
24 The screen is used when a requested public screen is not available
25 and the FALLBACK option is enabled or when the visitor window asks for
26 the default public screen.
29 name - The name of the public screen that should be used as default,
30 or NULL to specify the Workbench screen.
42 OpenWindow(), OpenScreen()
46 *****************************************************************************/
50 //ignored for defpubscreen patch
51 if (GetPrivIBase(IntuitionBase
)->IControlPrefs
.ic_Flags
& ICF_DEFPUBSCREEN
) return;
55 struct PubScreenNode
* psn
;
57 if ((psn
= (struct PubScreenNode
*)FindName (LockPubScreenList(), name
)))
58 GetPrivIBase(IntuitionBase
)->DefaultPubScreen
= psn
->psn_Screen
;
60 UnlockPubScreenList();
63 GetPrivIBase(IntuitionBase
)->DefaultPubScreen
= NULL
;
66 } /* SetDefaultPubScreen */