Fix IO memory access .. SB128 driver makes noises in VMWare - CMI is untested (Curren...
[AROS.git] / rom / graphics / cleareol.c
blobceabf2250a7c53e1da7f8f86480ba4750afc5b8a
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 #ifdef DEBUG
16 #undef DEBUG
17 #endif
19 #define DEBUG 0
20 #include <aros/debug.h>
22 AROS_LH1(void, ClearEOL,
24 /* SYNOPSIS */
25 AROS_LHA(struct RastPort *, rp, A1),
27 /* LOCATION */
28 struct GfxBase *, GfxBase, 7, Graphics)
30 /* FUNCTION
32 Clear a rectangular area from the current position to the end of the
33 rastport, the height of which is the height of the current text font.
35 INPUTS
37 pr -- pointer to rastport
39 RESULT
41 NOTES
43 EXAMPLE
45 BUGS
47 SEE ALSO
49 Text(), ClearScreen(), SetRast(), graphics/text.h, graphics/rastport.h
51 INTERNALS
53 HISTORY
55 24.7.98 SDuvan implemented
57 *****************************************************************************/
59 AROS_LIBFUNC_INIT
61 ULONG oldDrMd = GetDrMd(rp);;
62 ULONG width = GetBitMapAttr(rp->BitMap, BMA_WIDTH);
64 SetDrMd(rp, oldDrMd ^ INVERSVID);
65 RectFill(rp, rp->cp_x, rp->cp_y - rp->TxBaseline, width - 1,
66 rp->cp_y - rp->TxBaseline + rp->Font->tf_YSize - 1);
67 SetDrMd(rp, oldDrMd);
69 AROS_LIBFUNC_EXIT
70 } /* ClearEOL */