diff options
author | Richard Linden <none@none> | 2012-04-17 17:13:48 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2012-04-17 17:13:48 -0700 |
commit | 42b5dfda161a1e6b92990cd5206bca5ff5b95ab6 (patch) | |
tree | 92ca1cd374355e3b76846f2ea3e6a012b4f78b56 /indra/llui | |
parent | 234ce663fa52a588662153e6e465a53643c4e0f4 (diff) |
CHUI-86 WIP Investigate voice-dot with name tag integration
fixed bad parameters in draw3d...name tags should display properly now
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/lluiimage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/llui/lluiimage.cpp b/indra/llui/lluiimage.cpp index a4886dabb0..9ed98f941f 100644 --- a/indra/llui/lluiimage.cpp +++ b/indra/llui/lluiimage.cpp @@ -145,10 +145,10 @@ void LLUIImage::draw3D(const LLVector3& origin_agent, const LLVector3& x_axis, c mClipRegion.mBottom + mScaleRegion.mBottom * mClipRegion.getHeight()); gl_segmented_rect_3d_tex(mClipRegion, center_uv_rect, - LLRectf(border_width * border_scale * 0.5f, - 1.f - (border_height * border_scale * 0.5f), - 1.f - (border_width * border_scale * 0.5f), - border_height * border_scale * 0.5f), + LLRectf(border_width * border_scale * 0.5f / (F32)rect.getWidth(), + (rect.getHeight() - (border_height * border_scale * 0.5f)) / (F32)rect.getHeight(), + (rect.getWidth() - (border_width * border_scale * 0.5f)) / (F32)rect.getWidth(), + (border_height * border_scale * 0.5f) / (F32)rect.getHeight()), rect.getWidth() * x_axis, rect.getHeight() * y_axis); |