Removed unused references to effect03.png from the code
parent
371621ced4
commit
e91ecbbb01
2
data
2
data
|
@ -1 +1 @@
|
||||||
Subproject commit 2ee08c5397658bbebe5d1593472fdd67a7b2778c
|
Subproject commit e3a875c413d89eaff501c9400e126dd8410d6298
|
|
@ -852,13 +852,7 @@ void CText::DrawCharAndAdjustPos(UTF8Char ch, FontType font, float size, Math::P
|
||||||
|
|
||||||
// For whatever reason ch.c1 is a SIGNED char, we need to fix that
|
// For whatever reason ch.c1 is a SIGNED char, we need to fix that
|
||||||
unsigned char icon = static_cast<unsigned char>(ch.c1);
|
unsigned char icon = static_cast<unsigned char>(ch.c1);
|
||||||
if ( icon >= 192 )
|
if ( icon >= 128 )
|
||||||
{
|
|
||||||
icon -= 192;
|
|
||||||
m_engine->SetTexture("textures/effect03.png");
|
|
||||||
m_engine->SetState(ENG_RSTATE_TTEXTURE_WHITE);
|
|
||||||
}
|
|
||||||
else if ( icon >= 128 )
|
|
||||||
{
|
{
|
||||||
icon -= 128;
|
icon -= 128;
|
||||||
m_engine->SetTexture("textures/interface/button3.png");
|
m_engine->SetTexture("textures/interface/button3.png");
|
||||||
|
|
|
@ -515,13 +515,7 @@ void CControl::Draw()
|
||||||
if ( m_state & STATE_DEAD ) return;
|
if ( m_state & STATE_DEAD ) return;
|
||||||
|
|
||||||
icon = m_icon;
|
icon = m_icon;
|
||||||
if ( icon >= 192 )
|
if ( icon >= 128 )
|
||||||
{
|
|
||||||
icon -= 192;
|
|
||||||
m_engine->SetTexture("textures/effect03.png");
|
|
||||||
m_engine->SetState(Gfx::ENG_RSTATE_TTEXTURE_WHITE);
|
|
||||||
}
|
|
||||||
else if ( icon >= 128 )
|
|
||||||
{
|
{
|
||||||
icon -= 128;
|
icon -= 128;
|
||||||
m_engine->SetTexture("textures/interface/button3.png");
|
m_engine->SetTexture("textures/interface/button3.png");
|
||||||
|
@ -856,4 +850,3 @@ std::string CControl::GetResourceName(EventType eventType)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -125,12 +125,7 @@ void CShortcut::Draw()
|
||||||
}
|
}
|
||||||
|
|
||||||
icon = m_icon;
|
icon = m_icon;
|
||||||
if ( icon >= 192 )
|
if ( icon >= 128 )
|
||||||
{
|
|
||||||
icon -= 192;
|
|
||||||
m_engine->SetTexture("textures/effect03.png");
|
|
||||||
}
|
|
||||||
else if ( icon >= 128 )
|
|
||||||
{
|
{
|
||||||
icon -= 128;
|
icon -= 128;
|
||||||
m_engine->SetTexture("textures/interface/button3.png");
|
m_engine->SetTexture("textures/interface/button3.png");
|
||||||
|
|
Loading…
Reference in New Issue