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
1 changed files with 1 additions and 1 deletions

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);