projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5496274
)
keep a small space on the sides of windows between the edge and the text
author
Dana Jansens
<danakj@orodu.net>
Wed, 25 Jun 2003 21:17:15 +0000
(21:17 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 25 Jun 2003 21:17:15 +0000
(21:17 +0000)
render/font.c
patch
|
blob
|
history
diff --git
a/render/font.c
b/render/font.c
index
b9a17b4
..
e0a12a1
100644
(file)
--- a/
render/font.c
+++ b/
render/font.c
@@
-125,7
+125,9
@@
void RrFontDraw(XftDraw *d, RrTextureText *t, Rect *area)
/* center vertically */
y = area->y +
(area->height - RrFontHeight(t->font, t->shadow, t->offset)) / 2;
- w = area->width;
+ /* the +2 and -4 leave a small blank edge on the sides */
+ x += 2;
+ w = area->width - 4;
h = area->height;
text = g_string_new(t->string);