2 Copyright © 1995-2013, 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().
43 *****************************************************************************/
47 struct GfxBase
*GfxBase
= GetPrivIBase(IntuitionBase
)->GfxBase
;
49 ULONG ilock
= LockIBase(0);
53 if ((screen
->ViewPort
.Modes
^ IntuitionBase
->ViewLord
.Modes
) & LACE
)
55 failure
= RemakeDisplay();
59 failure
= MakeVPort(&IntuitionBase
->ViewLord
, &screen
->ViewPort
);