Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / rom / graphics / setsoftstyle.c
blob3aafe86bcb563f8396f086fe2c70cb6e4ab5a549
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function SetSoftStyle()
6 Lang: English
7 */
9 #include "graphics_intern.h"
11 /*****************************************************************************
13 NAME */
14 #include <graphics/rastport.h>
15 #include <proto/graphics.h>
17 AROS_LH3(ULONG, SetSoftStyle,
19 /* SYNOPSIS */
20 AROS_LHA(struct RastPort *, rp , A1),
21 AROS_LHA(ULONG , style , D0),
22 AROS_LHA(ULONG , enable, D1),
24 /* LOCATION */
25 struct GfxBase *, GfxBase, 15, Graphics)
27 /* FUNCTION
29 Set the style of the current font. Only those bits set in 'enable' are
30 affected.
32 INPUTS
34 rp -- pointer to rastport
35 style -- the style the font should have
36 enable -- mask for style bits
38 RESULT
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
43 bits set.
45 NOTES
47 EXAMPLE
49 BUGS
51 SEE ALSO
53 AskSoftStyle(), graphics/text.h
55 INTERNALS
57 HISTORY
59 24.7.98 SDuvan implemented
61 *****************************************************************************/
63 AROS_LIBFUNC_INIT
65 ULONG realEnable = enable & AskSoftStyle(rp);
67 rp->AlgoStyle = ((~realEnable & rp->AlgoStyle) | (realEnable & style));
69 return rp->AlgoStyle | rp->Font->tf_Style;
71 AROS_LIBFUNC_EXIT
72 } /* SetSoftStyle */