2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Graphics function SetSoftStyle()
9 /*****************************************************************************
12 #include <graphics/rastport.h>
13 #include <proto/graphics.h>
15 AROS_LH3(ULONG
, SetSoftStyle
,
18 AROS_LHA(struct RastPort
*, rp
, A1
),
19 AROS_LHA(ULONG
, style
, D0
),
20 AROS_LHA(ULONG
, enable
, D1
),
23 struct GfxBase
*, GfxBase
, 15, Graphics
)
27 Set the style of the current font. Only those bits set in 'enable' are
32 rp -- pointer to rastport
33 style -- the style the font should have
34 enable -- mask for style bits
38 The style bits used hereinafter (the font may not support all the styles
39 you wish to set). Note that this is possibly more style bits than you
40 affected by calling SetSoftStyle() as a font may have intrinsic style
51 AskSoftStyle(), graphics/text.h
57 24.7.98 SDuvan implemented
59 *****************************************************************************/
63 ULONG realEnable
= enable
& AskSoftStyle(rp
);
65 rp
->AlgoStyle
= ((~realEnable
& rp
->AlgoStyle
) | (realEnable
& style
));
67 return rp
->AlgoStyle
| rp
->Font
->tf_Style
;