mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-04 21:43:34 +00:00
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
|
// Shift the vertices of the overflowing word down a line and back to the beginning
|
||||||
for (uint32_t v = wordStart; v < vertexCount; v++) {
|
for (uint32_t v = wordStart; v < vertexCount; v++) {
|
||||||
vertices[v].position.x -= dx;
|
vertices[v].position.x -= dx;
|
||||||
vertices[v].position.y -= dy;
|
vertices[v].position.y += flip ? dy : -dy;
|
||||||
}
|
}
|
||||||
|
|
||||||
aline(vertices, lineStart, wordStart, prevWordEndX, halign);
|
aline(vertices, lineStart, wordStart, prevWordEndX, halign);
|
||||||
|
|
Loading…
Reference in a new issue