all repos — openbox @ e37b07bfa06af43480df0b23208f83ab66939712

openbox fork - make it a bit more like ryudo

dont need pll
Mikael Magnusson mikachu@comhem.se
commit

e37b07bfa06af43480df0b23208f83ab66939712

parent

a08bb4abba37c2ee88c32423cd4d5ba916e74f49

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M render/font.crender/font.c

@@ -257,7 +257,6 @@ size_t l;

gboolean shortened = FALSE; #else PangoLayout *pl; - PangoLayoutLine *pll; PangoRectangle rect; pl = pango_layout_new (context);

@@ -347,7 +346,7 @@ t->font->xftfont->ascent + y + t->font->offset,

(FcChar8*)text->str, l); #else /* USE_PANGO */ /* see below... */ - pango_xft_render_layout_line(d, &c, pll = pango_layout_get_line(pl, 0), + pango_xft_render_layout_line(d, &c, pango_layout_get_line(pl, 0), (x + t->font->offset) * PANGO_SCALE, (y + t->font->offset) * PANGO_SCALE); #endif /* USE_PANGO */

@@ -368,7 +367,7 @@ * layout() bases y on the top of the ink layout shit ass fucking crap.

* We want the baseline to always be in the same place, thusly, we use * layout_line() * The actual line doesn't need to be freed */ - pango_xft_render_layout_line(d, &c, pll = pango_layout_get_line(pl, 0), + pango_xft_render_layout_line(d, &c, pango_layout_get_line(pl, 0), x * PANGO_SCALE, y * PANGO_SCALE); g_object_unref(pl); #endif