forked from old/legacy-imlib2
parent
aff90a588d
commit
3f3e5f1e3b
|
@ -78,7 +78,7 @@ imlib_render_str(ImlibImage * im, ImlibFont * fn, int drx, int dry,
|
||||||
DATA32 *data, col;
|
DATA32 *data, col;
|
||||||
int nx, ny, tmp;
|
int nx, ny, tmp;
|
||||||
|
|
||||||
imlib_font_query_size(fn, text, &w, &h);
|
imlib_font_query_advance(fn, text, &w, &h);
|
||||||
|
|
||||||
data = malloc(w * h * sizeof(DATA32));
|
data = malloc(w * h * sizeof(DATA32));
|
||||||
if (!data)
|
if (!data)
|
||||||
|
|
Loading…
Reference in New Issue