Commit e3174c67 authored by Jean-Andre Santoni's avatar Jean-Andre Santoni
Browse files

Implement new line

parent 97594eb3
......@@ -392,11 +392,17 @@ void pntr_print(painter_t *p, int x, int y, const char *text, int limit)
drect.x += srect.width + 1;
if (limit > 0 && drect.x - x > limit)
{
if (limit > 0 && drect.x - x > limit)
{
drect.x = x;
drect.y += atlas->height;
}
if (c == '\n')
{
drect.x = x;
drect.y += atlas->height;
}
drect.y += atlas->height;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment