New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / intuition / makescreen.c
blobc4bd91e294f906329d81793fccb0987a4c66f46b
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include <proto/graphics.h>
8 #include "intuition_intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <proto/intuition.h>
15 AROS_LH1(LONG, MakeScreen,
17 /* SYNOPSIS */
18 AROS_LHA(struct Screen *, screen, A0),
20 /* LOCATION */
21 struct IntuitionBase *, IntuitionBase, 63, Intuition)
23 /* FUNCTION
25 INPUTS
26 Pointer to your custom screen.
28 RESULT
29 Zero for success, non-zero for failure.
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
38 RemakeDisplay(), RethinkDisplay(), graphics.library/MakeVPort(),
40 INTERNALS
42 HISTORY
44 *****************************************************************************/
46 AROS_LIBFUNC_INIT
47 AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
49 LONG failure = TRUE;
50 ULONG ilock = LockIBase(0);
52 if (screen)
54 if ((screen->ViewPort.Modes ^ IntuitionBase->ViewLord.Modes) & LACE)
56 failure = RemakeDisplay();
58 else
60 failure = MakeVPort(&IntuitionBase->ViewLord, &screen->ViewPort);
64 UnlockIBase(ilock);
66 return failure;
68 AROS_LIBFUNC_EXIT
69 } /* MakeScreen */