1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 20:43:35 +00:00

Fix font wrap when camera is flipped to 2d;

This commit is contained in:
bjorn 2023-05-12 17:02:18 +01:00
parent 60ff2de78b
commit 18e327b135

View file

@ -3512,7 +3512,7 @@ void lovrFontGetVertices(Font* font, ColoredString* strings, uint32_t count, flo
// Shift the vertices of the overflowing word down a line and back to the beginning
for (uint32_t v = wordStart; v < vertexCount; v++) {
vertices[v].position.x -= dx;
vertices[v].position.y -= dy;
vertices[v].position.y += flip ? dy : -dy;
}
aline(vertices, lineStart, wordStart, prevWordEndX, halign);