small fix
authorBrenden Matthews <brenden1@rty.ca>
Wed, 3 Aug 2005 17:04:35 +0000 (17:04 +0000)
committerBrenden Matthews <brenden1@rty.ca>
Wed, 3 Aug 2005 17:04:35 +0000 (17:04 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@49 7f574dfc-610e-0410-a909-a81674777703

AUTHORS
conky.1
conky.c

diff --git a/AUTHORS b/AUTHORS
index 4dc6738..742e52e 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -39,6 +39,9 @@ Gwenhael LE MOINE <cycojesus at yahoo dot fr>
 Hannu Saransaari <hipo at users dot sourceforge dot net>
   Main code
 
+j-rock - #otw on freenode
+  small fix for XFT
+
 jack_mort - gentoo forums
   $tab patch
 
diff --git a/conky.1 b/conky.1
index 5d20465..cd89e12 100644 (file)
--- a/conky.1
+++ b/conky.1
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH CONKY "1" "July 2005" "Conky 1.2 compiled Jul 27 2005" "User Commands"
+.TH CONKY "1" "August 2005" "Conky 1.2 compiled Aug  3 2005" "User Commands"
 .SH NAME
 Conky
 .SH SYNOPSIS
diff --git a/conky.c b/conky.c
index 21d9acc..e6f9309 100644 (file)
--- a/conky.c
+++ b/conky.c
@@ -90,7 +90,9 @@ int addfont(const char *data_in)
        }
        if (strlen(data_in) < TEXT_BUFFER_SIZE) { // must account for null terminator
                strncpy(fonts[font_count].name, data_in, TEXT_BUFFER_SIZE);
+#ifdef XFT
                fonts[font_count].font_alpha = 0xffff;
+#endif
        } else {
                CRIT_ERR("Oops...looks like something overflowed in addfont().");
        }
@@ -107,7 +109,9 @@ void set_first_font(const char *data_in)
        }
        if (strlen(data_in) > 1) {
                strncpy(fonts[0].name, data_in, TEXT_BUFFER_SIZE-1);
+#ifdef XFT
                fonts[0].font_alpha = 0xffff;
+#endif
        }
 }