Instead of "eax" and "edx" in asm constraints use "a" and "d"
[tangerine.git] / rom / intuition / remakedisplay.c
blob1bbba87f462e81e0e697901a9e263c53d07bf800
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_LH0(LONG, RemakeDisplay,
17 /* SYNOPSIS */
19 /* LOCATION */
20 struct IntuitionBase *, IntuitionBase, 64, Intuition)
22 /* FUNCTION
24 INPUTS
25 None.
27 RESULT
28 Zero for success, non-zero for failure.
30 NOTES
32 EXAMPLE
34 BUGS
36 SEE ALSO
37 RethinkDisplay(), MakeScreen(), graphics.library/MakeVPort(),
38 graphics.library/MrgCop(), graphics.library/LoadView()
40 INTERNALS
42 HISTORY
44 *****************************************************************************/
46 AROS_LIBFUNC_INIT
47 AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
49 struct Screen *screen;
50 ULONG ilock = LockIBase(0);
51 LONG failure = 0;
53 for (screen = IntuitionBase->FirstScreen; screen; screen = screen->NextScreen)
55 LONG error = MakeVPort(&IntuitionBase->ViewLord, &screen->ViewPort);
57 if (error)
58 failure = error;
61 if (!failure)
62 failure = RethinkDisplay();
64 UnlockIBase(ilock);
66 return failure;
68 AROS_LIBFUNC_EXIT
69 } /* RemakeDisplay */