mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 16:26:18 +00:00
Fixed: Don't compress textures in DXTC when used as buttons
This commit is contained in:
parent
0ed6351b7c
commit
27ab384866
1 changed files with 3 additions and 3 deletions
|
@ -258,19 +258,19 @@ void CCtrlButton::updateCoords()
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
void CCtrlButton::setTexture(const std::string&name)
|
void CCtrlButton::setTexture(const std::string&name)
|
||||||
{
|
{
|
||||||
_TextureIdNormal.setTexture(name.c_str (), 0, 0, 0, 0, false);
|
_TextureIdNormal.setTexture(name.c_str (), 0, 0, -1, -1, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
void CCtrlButton::setTexturePushed(const std::string&name)
|
void CCtrlButton::setTexturePushed(const std::string&name)
|
||||||
{
|
{
|
||||||
_TextureIdPushed.setTexture(name.c_str (), 0, 0, 0, 0, false);
|
_TextureIdPushed.setTexture(name.c_str (), 0, 0, -1, -1, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
void CCtrlButton::setTextureOver(const std::string&name)
|
void CCtrlButton::setTextureOver(const std::string&name)
|
||||||
{
|
{
|
||||||
_TextureIdOver.setTexture(name.c_str (), 0, 0, 0, 0, false);
|
_TextureIdOver.setTexture(name.c_str (), 0, 0, -1, -1, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue