2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function SetBPen()
8 #include "graphics_intern.h"
10 #include "gfxfuncsupport.h"
12 /*****************************************************************************
15 #include <graphics/rastport.h>
16 #include <proto/graphics.h>
18 AROS_LH2(void, SetBPen
,
21 AROS_LHA(struct RastPort
*, rp
, A1
),
22 AROS_LHA(ULONG
, pen
, D0
),
25 struct GfxBase
*, GfxBase
, 58, Graphics
)
28 Set secondary pen for rastport.
32 pen - pen number (0...255)
47 29-10-95 digulla automatically created from
48 graphics_lib.fd and clib/graphics_protos.h
50 *****************************************************************************/
54 struct gfx_driverdata
*dd
;
56 if (OBTAIN_DRIVERDATA(rp
, GfxBase
))
59 struct TagItem col_tags
[]=
61 { aHidd_GC_Background
, 0},
65 col_tags
[0].ti_Data
= rp
->BitMap
? BM_PIXEL(rp
->BitMap
, pen
& PEN_MASK
) : pen
;
67 dd
= GetDriverData(rp
);
70 OOP_SetAttrs( dd
->dd_GC
, col_tags
);
72 RELEASE_DRIVERDATA(rp
, GfxBase
);
75 /* Do it after the driver to allow it to inspect the previous value */