2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include <graphics/displayinfo.h>
8 #include <proto/graphics.h>
9 #include "intuition_intern.h"
11 /*****************************************************************************
14 #include <proto/intuition.h>
16 AROS_LH3(LONG
, QueryOverscan
,
19 AROS_LHA(ULONG
, displayid
, A0
),
20 AROS_LHA(struct Rectangle
*, rect
, A1
),
21 AROS_LHA(WORD
, oscantype
, D0
),
24 struct IntuitionBase
*, IntuitionBase
, 79, Intuition
)
44 *****************************************************************************/
47 AROS_LIBBASE_EXT_DECL(struct IntuitionBase
*,IntuitionBase
)
49 struct DimensionInfo diminfo
;
52 DEBUG_QUERYOVERSCAN(dprintf("LIB_QueryOverscan: displayid 0x%lx rect 0x%lx oscantype 0x%lx\n",
57 DEBUG_QUERYOVERSCAN(dprintf("LIB_QueryOverscan: %ld %ld %ld %ld\n",
62 ASSERT_VALID_PTR(rect
);
64 if (GetDisplayInfoData(NULL
, (UBYTE
*)&diminfo
, sizeof(diminfo
), DTAG_DIMS
, displayid
) > 0)
71 DEBUG_QUERYOVERSCAN(dprintf("LIB_QueryOverscan: OSCAN_TEXT\n"));
72 memcpy(rect
,&diminfo
.TxtOScan
,sizeof(struct Rectangle
));
76 DEBUG_QUERYOVERSCAN(dprintf("LIB_QueryOverscan: OSCAN_STANDARD\n"));
77 memcpy(rect
,&diminfo
.StdOScan
,sizeof(struct Rectangle
));
81 DEBUG_QUERYOVERSCAN(dprintf("LIB_QueryOverscan: OSCAN_MAX\n"));
82 memcpy(rect
,&diminfo
.MaxOScan
,sizeof(struct Rectangle
));
86 DEBUG_QUERYOVERSCAN(dprintf("LIB_QueryOverscan: OSCAN_VIDEO\n"));
87 memcpy(rect
,&diminfo
.VideoOScan
,sizeof(struct Rectangle
));
91 DEBUG_QUERYOVERSCAN(dprintf("LIB_QueryOverscan: OSCAN_????\n"));
92 /* or should we assume OSCAN_TEXT? */
96 } /* switch(oscantype) */
98 } /* if (GetDisplayInfoData(NULL, &diminfo, sizeof(diminfo), DTAG_DIMS, displayid) > 0) */
100 DEBUG_QUERYOVERSCAN(dprintf("LIB_QueryOverscan: retval %ld, %ld %ld %ld %ld\n",
111 } /* QueryOverscan */