From 75109e14c3c3c0b94be092c61449b16b8df53138 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Wed, 15 Jan 2014 20:15:53 -0500 Subject: [PATCH] Italics hotfix Restores use of the old slant_amt offset for italicizing fonts by slanting quads. Note that this is the wrong way to fix the issue and should eventually be removed. --- indra/llrender/llfontgl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/llrender/llfontgl.cpp b/indra/llrender/llfontgl.cpp index 2c1842a74..31d48f2ab 100644 --- a/indra/llrender/llfontgl.cpp +++ b/indra/llrender/llfontgl.cpp @@ -1349,12 +1349,12 @@ void LLFontGL::renderQuad(LLVector4a* vertex_out, LLVector2* uv_out, LLColor4U* colors_out[index] = color; index++; - vertex_out[index].set(screen_rect.mLeft, screen_rect.mBottom, 0.f); + vertex_out[index].set(screen_rect.mLeft + slant_amt, screen_rect.mBottom, 0.f); uv_out[index] = LLVector2(uv_rect.mLeft, uv_rect.mBottom); colors_out[index] = color; index++; - vertex_out[index].set(screen_rect.mRight, screen_rect.mBottom, 0.f); + vertex_out[index].set(screen_rect.mRight + slant_amt, screen_rect.mBottom, 0.f); uv_out[index] = LLVector2(uv_rect.mRight, uv_rect.mBottom); colors_out[index] = color; }