From bd5150eebfd13e0ac525ece84af2c6a770558337 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Mon, 9 Nov 2009 15:42:46 -0700 Subject: Updated asset browser from old font system --- linden/indra/newview/llfloaterassetbrowser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'linden/indra') diff --git a/linden/indra/newview/llfloaterassetbrowser.cpp b/linden/indra/newview/llfloaterassetbrowser.cpp index 615d21a..cb2412d 100644 --- a/linden/indra/newview/llfloaterassetbrowser.cpp +++ b/linden/indra/newview/llfloaterassetbrowser.cpp @@ -87,7 +87,7 @@ void LLFloaterAssetBrowser::initialize() S32 image_top = getRect().getHeight(); S32 image_bottom = BTN_HEIGHT_SMALL; S32 image_middle = (image_top + image_bottom) / 2; - S32 line_height = llround(LLFontGL::sSansSerifSmall->getLineHeight()); + S32 line_height = llround(LLFontGL::getFontSansSerifSmall()->getLineHeight()); mNoAssetsLabel = new LLTextBox("mNoAssetsLabel.", LLRect(getRect().getWidth()/2, @@ -95,7 +95,7 @@ void LLFloaterAssetBrowser::initialize() getRect().getWidth(), image_middle - line_height / 2 ), "No assets found.", - LLFontGL::sSansSerifSmall ); + LLFontGL::getFontSansSerifSmall() ); mNoAssetsLabel->setFollowsAll(); addChild(mNoAssetsLabel); mNoAssetsLabel->setVisible(FALSE); @@ -314,7 +314,7 @@ void LLFloaterAssetBrowser::draw() info_rect.mLeft = border.mLeft; info_rect.mTop = border.mBottom - 3; info_rect.mRight = border.mLeft + 130; - info_rect.mBottom = border.mBottom - 2*llround(LLFontGL::sSansSerifSmall->getLineHeight()); + info_rect.mBottom = border.mBottom - 2*llround(LLFontGL::getFontSansSerifSmall()->getLineHeight()); gl_rect_2d(border, LLColor4::black, FALSE); @@ -350,7 +350,7 @@ void LLFloaterAssetBrowser::draw() mAssetInfoLabel = new LLTextBox("Asset Info"/*mTextureAssets[i].mAssetInfo*/, info_rect, asset_info, - LLFontGL::sSansSerifSmall); + LLFontGL::getFontSansSerifSmall()); mAssetInfoLabel->setFollowsAll(); mAssetInfoLabelList.push_back(mAssetInfoLabel); addChild(mAssetInfoLabelList[mAssetInfoIndex]); -- cgit v1.1