diff options
author | QC <qball@gmpclient.org> | 2015-10-10 13:03:11 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-10-10 13:03:11 +0200 |
commit | b0ceccb93ea56161a33e2684912f4d220b31aee3 (patch) | |
tree | 0b205fac13e2da2f1740b68f6b4a69798a66be79 /source/textbox.c | |
parent | 01aa2e32cc354b2703e0237e749dc9eb2016b635 (diff) |
Use cairo for all drawing, also borders
Diffstat (limited to 'source/textbox.c')
-rw-r--r-- | source/textbox.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/textbox.c b/source/textbox.c index 6c1e73f3..4230d8a8 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -273,9 +273,10 @@ static void texbox_update ( textbox *tb ) x = ( ( tb->w - tw - 2 * SIDE_MARGIN ) ) / 2; } short fh = textbox_get_font_height ( tb ); - if(fh > tb->h) { - y=0; - }else { + if ( fh > tb->h ) { + y = 0; + } + else { y = ( ( tb->h - fh ) ) / 2; } |