mirror of https://github.com/bjornbytes/lovr.git
Fix font wrap when camera is flipped to 2d;
This commit is contained in:
parent
60ff2de78b
commit
18e327b135
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue