aboutsummaryrefslogtreecommitdiffstats
path: root/font.c
diff options
context:
space:
mode:
authorokan2011-06-24 05:45:57 +0000
committerokan2011-06-24 05:45:57 +0000
commit2de7aba86f0a58b402764864d7de4af200682895 (patch)
treebe328e3380de60a30704daad69934c3e1a2e5b39 /font.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 '')
-rw-r--r--font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/font.c b/font.c
index 63d315b..20075f9 100644
--- a/font.c
+++ b/font.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: font.c,v 1.14 2011/05/11 13:53:51 okan Exp $
+ * $OpenBSD: font.c,v 1.15 2011/06/24 05:45:57 okan Exp $
*/
#include <sys/param.h>
@@ -45,7 +45,7 @@ font_descent(struct screen_ctx *sc)
u_int
font_height(struct screen_ctx *sc)
{
- return (sc->fontheight);
+ return (sc->font->height + 1);
}
void