mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04: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…
Add table
Add a link
Reference in a new issue