2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function SetRast()
8 #include <graphics/rastport.h>
9 #include "graphics_intern.h"
10 #include "gfxfuncsupport.h"
12 /*****************************************************************************
15 #include <graphics/rastport.h>
16 #include <proto/graphics.h>
18 AROS_LH2(void, SetRast
,
21 AROS_LHA(struct RastPort
*, rp
, A1
),
22 AROS_LHA(ULONG
, pen
, D0
),
25 struct GfxBase
*, GfxBase
, 39, Graphics
)
29 Set the entire contents of a specified RastPort to a specific colour.
33 rp -- pointer to the RastPort in question
34 pen -- pen number to set the bitmap pixels to
38 All pixels are set to the colour corresponding to the specified pen
49 RectFill(), <graphics/rastport.h>
54 29-10-95 digulla automatically created from
55 graphics_lib.fd and clib/graphics_protos.h
57 *****************************************************************************/
61 /* We have to use layers to perform clipping */
62 struct BitMap
*bm
= rp
->BitMap
;
67 width
= GetBitMapAttr(bm
, BMA_WIDTH
);
68 height
= GetBitMapAttr(bm
, BMA_HEIGHT
);
69 pixval
= BM_PIXEL(bm
, pen
);
71 fillrect_pendrmd(rp
, 0, 0, width
- 1, height
- 1, pixval
,
72 vHidd_GC_DrawMode_Copy
, TRUE
, GfxBase
);