diff options
author | fluxgen <fluxgen> | 2002-10-15 10:57:28 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-10-15 10:57:28 (GMT) |
commit | 7c43812c04447a81b42f1da9120d825fb86a0f32 (patch) | |
tree | 370cda5a829a466100806316212b4226254240b1 /src/Theme.cc | |
parent | 4acb333856c159ffcf1b252930e944ca6b8083bb (diff) | |
download | fluxbox-7c43812c04447a81b42f1da9120d825fb86a0f32.zip fluxbox-7c43812c04447a81b42f1da9120d825fb86a0f32.tar.bz2 |
antialias option
Diffstat (limited to 'src/Theme.cc')
-rw-r--r-- | src/Theme.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Theme.cc b/src/Theme.cc index 69f0963..be660d6 100644 --- a/src/Theme.cc +++ b/src/Theme.cc | |||
@@ -21,7 +21,7 @@ | |||
21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
22 | // DEALINGS IN THE SOFTWARE. | 22 | // DEALINGS IN THE SOFTWARE. |
23 | 23 | ||
24 | // $Id: Theme.cc,v 1.29 2002/10/13 22:32:49 fluxgen Exp $ | 24 | // $Id: Theme.cc,v 1.30 2002/10/15 10:53:01 fluxgen Exp $ |
25 | 25 | ||
26 | #ifndef _GNU_SOURCE | 26 | #ifndef _GNU_SOURCE |
27 | #define _GNU_SOURCE | 27 | #define _GNU_SOURCE |
@@ -916,7 +916,7 @@ void Theme::readDatabaseFont(char *rname, char *rclass, XFontStruct **font) { | |||
916 | } | 916 | } |
917 | } | 917 | } |
918 | 918 | ||
919 | void Theme::reconfigure() { | 919 | void Theme::reconfigure(bool antialias) { |
920 | 920 | ||
921 | XGCValues gcv; | 921 | XGCValues gcv; |
922 | unsigned long gc_value_mask = GCForeground; | 922 | unsigned long gc_value_mask = GCForeground; |
@@ -966,14 +966,15 @@ void Theme::reconfigure() { | |||
966 | GCForeground, &gcv); | 966 | GCForeground, &gcv); |
967 | 967 | ||
968 | gcv.foreground = m_menustyle.t_text.pixel(); | 968 | gcv.foreground = m_menustyle.t_text.pixel(); |
969 | // if (m_menustyle.titlefont.fontStruct()) | 969 | if (m_menustyle.titlefont.isAntialias() != antialias) |
970 | // gcv.font = m_menustyle.titlefont.fontStruct()->fid; | 970 | m_menustyle.titlefont.setAntialias(antialias); |
971 | |||
971 | XChangeGC(m_display, m_menustyle.t_text_gc, | 972 | XChangeGC(m_display, m_menustyle.t_text_gc, |
972 | gc_value_mask, &gcv); | 973 | gc_value_mask, &gcv); |
973 | 974 | ||
974 | gcv.foreground = m_menustyle.f_text.pixel(); | 975 | gcv.foreground = m_menustyle.f_text.pixel(); |
975 | // if (m_menustyle.framefont.fontStruct()) | 976 | if (m_menustyle.framefont.isAntialias() != antialias) |
976 | // gcv.font = m_menustyle.framefont.fontStruct()->fid; | 977 | m_menustyle.framefont.setAntialias(antialias); |
977 | 978 | ||
978 | XChangeGC(m_display, m_menustyle.f_text_gc, | 979 | XChangeGC(m_display, m_menustyle.f_text_gc, |
979 | gc_value_mask, &gcv); | 980 | gc_value_mask, &gcv); |