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_LH1(void, SetDefaultPubScreen
,
17 AROS_LHA(UBYTE
*, name
, A0
),
20 struct IntuitionBase
*, IntuitionBase
, 90, Intuition
)
24 Specifies the default public screen for visitor windows to open up on.
25 The screen is used when a requested public screen is not available
26 and the FALLBACK option is enabled or when the visitor window asks for
27 the default public screen.
31 name -- The name of the public screen that should be used as default,
32 or NULL to specify the Workbench screen.
44 OpenWindow(), OpenScreen()
49 29-10-95 digulla automatically created from
50 intuition_lib.fd and clib/intuition_protos.h
52 *****************************************************************************/
56 //ignored for defpubscreen patch
57 if (GetPrivIBase(IntuitionBase
)->IControlPrefs
.ic_Flags
& ICF_DEFPUBSCREEN
) return;
61 struct PubScreenNode
* psn
;
63 if ((psn
= (struct PubScreenNode
*)FindName (LockPubScreenList(), name
)))
64 GetPrivIBase(IntuitionBase
)->DefaultPubScreen
= psn
->psn_Screen
;
66 UnlockPubScreenList();
69 GetPrivIBase(IntuitionBase
)->DefaultPubScreen
= NULL
;
72 } /* SetDefaultPubScreen */