aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2011-06-24 05:45:57 +0000
committerokan2011-06-24 05:45:57 +0000
commit2de7aba86f0a58b402764864d7de4af200682895 (patch)
treebe328e3380de60a30704daad69934c3e1a2e5b39 /conf.c
parent042dd52d9a25ab335d4aad404694a0bef8b93ebd (diff)
downloadcwm-2de7aba86f0a58b402764864d7de4af200682895.tar.gz
struct XftFont already has height which we can use directly instead of
calculating ourselves, so do so. ok oga@
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index 62943a6..c04dd0d 100644
--- a/conf.c
+++ b/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.81 2011/06/24 05:40:09 okan Exp $
+ * $OpenBSD: conf.c,v 1.82 2011/06/24 05:45:57 okan Exp $
*/
#include <sys/param.h>
@@ -70,7 +70,6 @@ void
conf_font(struct conf *c, struct screen_ctx *sc)
{
sc->font = font_make(sc, c->DefaultFontName);
- sc->fontheight = font_ascent(sc) + font_descent(sc) + 1;
}
void