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