2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function ClearScreen()
8 #include <aros/debug.h>
9 #include <graphics/rastport.h>
10 #include "graphics_intern.h"
13 /*****************************************************************************
16 #include <proto/graphics.h>
18 AROS_LH1(void, ClearScreen
,
21 AROS_LHA(struct RastPort
*, rp
, A1
),
24 struct GfxBase
*, GfxBase
, 8, Graphics
)
28 Clear from the current position to the end of the rastport. Clearing
29 means setting the colour to 0 (or to BgPen if the drawmode is JAM2).
30 This includes a ClearEOL().
34 rp -- pointer to rastport
46 Text(), ClearEOL(), SetRast(), graphics/text.h, graphics/rastport.h
52 24.7.98 SDuvan implemented
54 *****************************************************************************/
58 ULONG ymin
= rp
->cp_y
- rp
->TxBaseline
+ rp
->Font
->tf_YSize
;
59 ULONG height
= GetBitMapAttr(rp
->BitMap
, BMA_HEIGHT
);
60 ULONG width
= GetBitMapAttr(rp
->BitMap
, BMA_WIDTH
);
66 ULONG oldDrMd
= GetDrMd(rp
);
68 SetDrMd(rp
, oldDrMd
^ INVERSVID
);
69 RectFill(rp
, 0, ymin
, width
- 1, height
- 1);