2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function ClearEOL()
9 /*****************************************************************************
12 #include <graphics/rastport.h>
13 #include <proto/graphics.h>
20 #include <aros/debug.h>
22 AROS_LH1(void, ClearEOL
,
25 AROS_LHA(struct RastPort
*, rp
, A1
),
28 struct GfxBase
*, GfxBase
, 7, Graphics
)
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.
37 pr -- pointer to rastport
49 Text(), ClearScreen(), SetRast(), graphics/text.h, graphics/rastport.h
55 24.7.98 SDuvan implemented
57 *****************************************************************************/
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);