forked from old/legacy-imlib2
parent
cf7ddecef8
commit
96693d652c
|
@ -77,9 +77,12 @@ imlib_render_str(ImlibImage * im, ImlibFont * fn, int drx, int dry,
|
||||||
ImlibImage *im2;
|
ImlibImage *im2;
|
||||||
DATA32 *data, col;
|
DATA32 *data, col;
|
||||||
int nx, ny, tmp;
|
int nx, ny, tmp;
|
||||||
|
int inset;
|
||||||
imlib_font_query_advance(fn, text, &w, &h);
|
|
||||||
|
inset = imlib_font_query_inset(fn, text);
|
||||||
|
imlib_font_query_size(fn, text, &w, &h);
|
||||||
|
w += inset;
|
||||||
|
|
||||||
data = malloc(w * h * sizeof(DATA32));
|
data = malloc(w * h * sizeof(DATA32));
|
||||||
if (!data)
|
if (!data)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue