mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 16:38:00 +00:00
Remove unneeded addition/removal of margin.
This commit is contained in:
parent
3df30438b1
commit
b882d9ab72
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ void textbox_draw ( textbox *tb )
|
|||
int tw = textbox_get_font_width ( tb );
|
||||
x = ( PANGO_SCALE * ( tb->w - tw - 2 * SIDE_MARGIN ) ) / 2;
|
||||
}
|
||||
y = ( PANGO_SCALE * ( tb->h - textbox_get_height ( tb ) + 2 * SIDE_MARGIN ) ) / 2;
|
||||
y = ( PANGO_SCALE * ( tb->h - textbox_get_font_height ( tb ) ) ) / 2;
|
||||
// Render the layout.
|
||||
pango_xft_render_layout ( draw, &( tb->color_fg ), tb->layout, x, y );
|
||||
|
||||
|
|
Loading…
Reference in a new issue