update the nightly configuration for x68_64 target to the newest toolchain. (NicJA)
[AROS.git] / rom / graphics / cleareol.c
blob9a627997ad392a88e8e833fdf00dc3ca30d9d0d7
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function ClearEOL()
6 Lang: English
7 */
9 #include <aros/debug.h>
10 #include <graphics/rastport.h>
11 #include "graphics_intern.h"
14 /*****************************************************************************
16 NAME */
17 #include <proto/graphics.h>
19 AROS_LH1(void, ClearEOL,
21 /* SYNOPSIS */
22 AROS_LHA(struct RastPort *, rp, A1),
24 /* LOCATION */
25 struct GfxBase *, GfxBase, 7, Graphics)
27 /* FUNCTION
29 Clear a rectangular area from the current position to the end of the
30 rastport, the height of which is the height of the current text font.
32 INPUTS
34 pr -- pointer to rastport
36 RESULT
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 Text(), ClearScreen(), SetRast(), graphics/text.h, graphics/rastport.h
48 INTERNALS
50 HISTORY
52 24.7.98 SDuvan implemented
54 *****************************************************************************/
56 AROS_LIBFUNC_INIT
58 ULONG oldDrMd = GetDrMd(rp);;
59 ULONG width = GetBitMapAttr(rp->BitMap, BMA_WIDTH);
61 SetDrMd(rp, oldDrMd ^ INVERSVID);
62 RectFill(rp, rp->cp_x, rp->cp_y - rp->TxBaseline, width - 1,
63 rp->cp_y - rp->TxBaseline + rp->Font->tf_YSize - 1);
64 SetDrMd(rp, oldDrMd);
66 AROS_LIBFUNC_EXIT
67 } /* ClearEOL */