revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / reqtools / rtgetvscreensize.c
blob627787ee8e11d7bc63c7b062823821471d28eacf
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #include <exec/types.h>
10 #include <proto/exec.h>
11 #include <proto/reqtools.h>
12 #include <proto/intuition.h>
13 #include <exec/libraries.h>
14 #include <exec/memory.h>
15 #include <aros/libcall.h>
17 #include "reqtools_intern.h"
19 /*****************************************************************************
21 NAME */
23 AROS_LH3(ULONG, rtGetVScreenSize,
25 /* SYNOPSIS */
27 AROS_LHA(struct Screen *, screen, A0),
28 AROS_LHA(ULONG *, widthptr, A1),
29 AROS_LHA(ULONG *, heightptr, A2),
31 /* LOCATION */
33 struct ReqToolsBase *, ReqToolsBase, 20, ReqTools)
35 /* FUNCTION
36 Use this function to get the size of the visible portion of a
37 screen.
39 The value returned by rtGetVScreenSize() can be used for vertical
40 spacing. It will be larger for interlaced and productivity screens.
41 Using this number for spacing will assure your requester will look
42 good on an interlaced and a non-interlaced screen.
44 Current return codes are 2 for non-interlaced and 4 for interlaced.
45 These values may change in the future, don't depend on them too
46 much. They will in any case remain of the same magnitude.
48 INPUTS
49 screen - pointer to the screen.
50 widthptr - address of an ULONG variable to hold the width.
51 heightptr - address of an ULONG variable to hold the height.
53 RESULT
54 spacing - vertical spacing for the screen.
56 NOTES
57 This function is for the advanced ReqTools user.
59 EXAMPLE
61 BUGS
63 SEE ALSO
65 INTERNALS
67 HISTORY
69 ******************************************************************************/
71 AROS_LIBFUNC_INIT
73 int width, height, retval;
75 retval = GetVScreenSize(screen, &width, &height); /* general.c */
77 *widthptr = (ULONG)width;
78 *heightptr = (ULONG)height;
80 return (ULONG)retval;
82 AROS_LIBFUNC_EXIT
84 } /* rtGetVScreenSize */