2 Copyright © 1995-2003, 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 *****************************************************************************/
55 AROS_LIBBASE_EXT_DECL(struct IntuitionBase
*,IntuitionBase
)
57 //ignored for defpubscreen patch
58 if (GetPrivIBase(IntuitionBase
)->IControlPrefs
.ic_Flags
& ICF_DEFPUBSCREEN
) return;
62 struct PubScreenNode
* psn
;
64 if ((psn
= (struct PubScreenNode
*)FindName (LockPubScreenList(), name
)))
65 GetPrivIBase(IntuitionBase
)->DefaultPubScreen
= psn
->psn_Screen
;
67 UnlockPubScreenList();
70 GetPrivIBase(IntuitionBase
)->DefaultPubScreen
= NULL
;
73 } /* SetDefaultPubScreen */