diff options
Diffstat (limited to 'linden/indra/llui/lliconctrl.cpp')
-rw-r--r-- | linden/indra/llui/lliconctrl.cpp | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/linden/indra/llui/lliconctrl.cpp b/linden/indra/llui/lliconctrl.cpp index 40272ee..79982c6 100644 --- a/linden/indra/llui/lliconctrl.cpp +++ b/linden/indra/llui/lliconctrl.cpp | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -88,18 +88,11 @@ void LLIconCtrl::draw() | |||
88 | { | 88 | { |
89 | if( getVisible() ) | 89 | if( getVisible() ) |
90 | { | 90 | { |
91 | // Border | 91 | if( mImagep.notNull() ) |
92 | BOOL has_image = !mImageID.isNull(); | ||
93 | |||
94 | if( has_image ) | ||
95 | { | 92 | { |
96 | if( mImagep.notNull() ) | 93 | mImagep->draw(0, 0, |
97 | { | 94 | mRect.getWidth(), mRect.getHeight(), |
98 | gl_draw_scaled_image(0, 0, | 95 | mColor ); |
99 | mRect.getWidth(), mRect.getHeight(), | ||
100 | mImagep, | ||
101 | mColor ); | ||
102 | } | ||
103 | } | 96 | } |
104 | 97 | ||
105 | LLUICtrl::draw(); | 98 | LLUICtrl::draw(); |
@@ -154,6 +147,7 @@ LLView* LLIconCtrl::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory * | |||
154 | LLUICtrlFactory::getAttributeColor(node,"color", color); | 147 | LLUICtrlFactory::getAttributeColor(node,"color", color); |
155 | 148 | ||
156 | LLIconCtrl* icon = new LLIconCtrl(name, rect, image_id); | 149 | LLIconCtrl* icon = new LLIconCtrl(name, rect, image_id); |
150 | |||
157 | icon->setColor(color); | 151 | icon->setColor(color); |
158 | 152 | ||
159 | icon->initFromXML(node, parent); | 153 | icon->initFromXML(node, parent); |