aboutsummaryrefslogtreecommitdiffstats
path: root/draw.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-05-16 16:37:43 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-05-16 16:37:43 +0000
commit4ad34ccd36a59c1c5ec2ea9b4263ae6381f3feae (patch)
treebf4cf5ccd854e01fa6ea3fca4bb38a937865f10a /draw.c
parenta1a0971c1f4bce4410a9ede8aaa5c45fd5b9a964 (diff)
downloaddzen-4ad34ccd36a59c1c5ec2ea9b4263ae6381f3feae.tar.gz
dzen-4ad34ccd36a59c1c5ec2ea9b4263ae6381f3feae.zip
cleanups, renamed mh to line_height
git-svn-id: http://dzen.googlecode.com/svn/trunk@28 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c6
1 files changed, 3 insertions, 3 deletions
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