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>
15 #include "graphics_intern.h"
22 #include <aros/debug.h>
24 AROS_LH1(void, ClearEOL
,
27 AROS_LHA(struct RastPort
*, rp
, A1
),
30 struct GfxBase
*, GfxBase
, 7, Graphics
)
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.
39 pr -- pointer to rastport
51 Text(), ClearScreen(), SetRast(), graphics/text.h, graphics/rastport.h
57 24.7.98 SDuvan implemented
59 *****************************************************************************/
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);