Do not check if we have enough space to draw (FS#731)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a3163c40af
commit
167770d06f
4
draw.c
4
draw.c
|
@ -169,10 +169,6 @@ draw_text(draw_context_t *ctx, draw_text_context_t *data,
|
||||||
PangoRectangle ext;
|
PangoRectangle ext;
|
||||||
pango_layout_get_pixel_extents(ctx->layout, NULL, &ext);
|
pango_layout_get_pixel_extents(ctx->layout, NULL, &ext);
|
||||||
|
|
||||||
/* Not enough space, draw nothing */
|
|
||||||
if(ext.width > area.width || ext.height > area.height)
|
|
||||||
return;
|
|
||||||
|
|
||||||
switch(align)
|
switch(align)
|
||||||
{
|
{
|
||||||
case AlignCenter:
|
case AlignCenter:
|
||||||
|
|
Loading…
Reference in New Issue