summaryrefslogtreecommitdiff
path: root/indra/llrender/llfontgl.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-07-29 11:53:31 -0700
committerRichard Linden <none@none>2010-07-29 11:53:31 -0700
commit6a3538a693cdfa4bd8040fac951ad88916470b94 (patch)
treeb984e4adfc9acde8227138664a8b18036ec4d530 /indra/llrender/llfontgl.cpp
parent28bd15d47d015798417f885926f692e8113fe054 (diff)
fix for truncated text rendering
Diffstat (limited to 'indra/llrender/llfontgl.cpp')
-rw-r--r--indra/llrender/llfontgl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llrender/llfontgl.cpp b/indra/llrender/llfontgl.cpp
index c0297eae3e..eaff42aaeb 100644
--- a/indra/llrender/llfontgl.cpp
+++ b/indra/llrender/llfontgl.cpp
@@ -369,7 +369,7 @@ S32 LLFontGL::render(const LLWString &wstr, S32 begin_offset, F32 x, F32 y, cons
if (right_x)
{
- *right_x = cur_x / sScaleX;
+ *right_x = (cur_x - origin.mV[VX]) / sScaleX;
}
//FIXME: add underline as glyph?