2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include <proto/graphics.h>
8 #include "intuition_intern.h"
10 /*****************************************************************************
13 #include <proto/intuition.h>
15 AROS_LH1(LONG
, MakeScreen
,
18 AROS_LHA(struct Screen
*, screen
, A0
),
21 struct IntuitionBase
*, IntuitionBase
, 63, Intuition
)
24 Create viewport of the screen.
27 Pointer to your custom screen.
30 Zero for success, non-zero for failure.
39 RemakeDisplay(), RethinkDisplay(), graphics.library/MakeVPort(),
45 *****************************************************************************/
50 ULONG ilock
= LockIBase(0);
54 if ((screen
->ViewPort
.Modes
^ IntuitionBase
->ViewLord
.Modes
) & LACE
)
56 failure
= RemakeDisplay();
60 failure
= MakeVPort(&IntuitionBase
->ViewLord
, &screen
->ViewPort
);