Added basic implementation of destroying a GPT table: just delete the
[AROS.git] / rom / graphics / cleareol.c
blob50581d55e6651e1c677d6f23ab27d04b6574d04e
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function ClearEOL()
6 Lang: English
7 */
9 /*****************************************************************************
11 NAME */
12 #include <graphics/rastport.h>
13 #include <proto/graphics.h>
15 #include "graphics_intern.h"
17 #ifdef DEBUG
18 #undef DEBUG
19 #endif
21 #define DEBUG 0
22 #include <aros/debug.h>
24 AROS_LH1(void, ClearEOL,
26 /* SYNOPSIS */
27 AROS_LHA(struct RastPort *, rp, A1),
29 /* LOCATION */
30 struct GfxBase *, GfxBase, 7, Graphics)
32 /* FUNCTION
34 Clear a rectangular area from the current position to the end of the
35 rastport, the height of which is the height of the current text font.
37 INPUTS
39 pr -- pointer to rastport
41 RESULT
43 NOTES
45 EXAMPLE
47 BUGS
49 SEE ALSO
51 Text(), ClearScreen(), SetRast(), graphics/text.h, graphics/rastport.h
53 INTERNALS
55 HISTORY
57 24.7.98 SDuvan implemented
59 *****************************************************************************/
61 AROS_LIBFUNC_INIT
63 ULONG oldDrMd = GetDrMd(rp);;
64 ULONG width = GetBitMapAttr(rp->BitMap, BMA_WIDTH);
66 SetDrMd(rp, oldDrMd ^ INVERSVID);
67 RectFill(rp, rp->cp_x, rp->cp_y - rp->TxBaseline, width - 1,
68 rp->cp_y - rp->TxBaseline + rp->Font->tf_YSize - 1);
69 SetDrMd(rp, oldDrMd);
71 AROS_LIBFUNC_EXIT
72 } /* ClearEOL */