2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function ClearEOL()
9 #include <aros/debug.h>
10 #include <graphics/rastport.h>
11 #include "graphics_intern.h"
14 /*****************************************************************************
17 #include <proto/graphics.h>
19 AROS_LH1(void, ClearEOL
,
22 AROS_LHA(struct RastPort
*, rp
, A1
),
25 struct GfxBase
*, GfxBase
, 7, Graphics
)
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.
34 pr -- pointer to rastport
46 Text(), ClearScreen(), SetRast(), graphics/text.h, graphics/rastport.h
52 24.7.98 SDuvan implemented
54 *****************************************************************************/
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);