2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Graphics function SetSoftStyle()
9 #include "graphics_intern.h"
11 /*****************************************************************************
14 #include <graphics/rastport.h>
15 #include <proto/graphics.h>
17 AROS_LH3(ULONG
, SetSoftStyle
,
20 AROS_LHA(struct RastPort
*, rp
, A1
),
21 AROS_LHA(ULONG
, style
, D0
),
22 AROS_LHA(ULONG
, enable
, D1
),
25 struct GfxBase
*, GfxBase
, 15, Graphics
)
29 Set the style of the current font. Only those bits set in 'enable' are
34 rp -- pointer to rastport
35 style -- the style the font should have
36 enable -- mask for style bits
40 The style bits used hereinafter (the font may not support all the styles
41 you wish to set). Note that this is possibly more style bits than you
42 affected by calling SetSoftStyle() as a font may have intrinsic style
53 AskSoftStyle(), graphics/text.h
59 24.7.98 SDuvan implemented
61 *****************************************************************************/
65 ULONG realEnable
= enable
& AskSoftStyle(rp
);
67 rp
->AlgoStyle
= ((~realEnable
& rp
->AlgoStyle
) | (realEnable
& style
));
69 return rp
->AlgoStyle
| rp
->Font
->tf_Style
;