From 4ad34ccd36a59c1c5ec2ea9b4263ae6381f3feae Mon Sep 17 00:00:00 2001 From: gotmor Date: Wed, 16 May 2007 16:37:43 +0000 Subject: cleanups, renamed mh to line_height git-svn-id: http://dzen.googlecode.com/svn/trunk@28 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- draw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'draw.c') diff --git a/draw.c b/draw.c index 274dcea..e7d59a8 100644 --- a/draw.c +++ b/draw.c @@ -70,7 +70,7 @@ void drawtext(const char *text, int reverse, int line, int align) { else x = dzen.title_win.width - textw(buf); } - y = dzen.font.ascent + (dzen.mh - h) / 2; + y = dzen.font.ascent + (dzen.line_height - h) / 2; mgc = reverse ? dzen.rgc : dzen.gc; if(dzen.font.set) { @@ -152,12 +152,12 @@ drawheader(char * text) { dzen.x = 0; dzen.y = 0; dzen.w = dzen.title_win.width; - dzen.h = dzen.mh; + dzen.h = dzen.line_height; if(text) drawtext(text, 0, -1, dzen.title_win.alignment); XCopyArea(dzen.dpy, dzen.title_win.drawable, dzen.title_win.win, - dzen.gc, 0, 0, dzen.title_win.width, dzen.mh, 0, 0); + dzen.gc, 0, 0, dzen.title_win.width, dzen.line_height, 0, 0); } void -- cgit v1.2.3-54-g00ecf