mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 01:45:36 +02:00
Remove dead code behind Irrlicht version checks
This commit is contained in:
@@ -138,10 +138,8 @@ namespace gui
|
||||
|
||||
bool flgmip = driver->getTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS);
|
||||
driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, false);
|
||||
#if IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR > 8
|
||||
bool flgcpy = driver->getTextureCreationFlag(video::ETCF_ALLOW_MEMORY_COPY);
|
||||
driver->setTextureCreationFlag(video::ETCF_ALLOW_MEMORY_COPY, true);
|
||||
#endif
|
||||
|
||||
// Set the texture color format.
|
||||
switch (pixel_mode)
|
||||
@@ -157,9 +155,8 @@ namespace gui
|
||||
|
||||
// Restore our texture creation flags.
|
||||
driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, flgmip);
|
||||
#if IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR > 8
|
||||
driver->setTextureCreationFlag(video::ETCF_ALLOW_MEMORY_COPY, flgcpy);
|
||||
#endif
|
||||
|
||||
return texture ? true : false;
|
||||
}
|
||||
|
||||
|
@@ -239,12 +239,10 @@ video::SColor StaticText::getOverrideColor() const
|
||||
return ColoredText.getDefaultColor();
|
||||
}
|
||||
|
||||
#if IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR > 8
|
||||
video::SColor StaticText::getActiveColor() const
|
||||
{
|
||||
return getOverrideColor();
|
||||
}
|
||||
#endif
|
||||
|
||||
//! Sets if the static text should use the overide color or the
|
||||
//! color in the gui skin.
|
||||
|
@@ -135,10 +135,8 @@ namespace gui
|
||||
//! Gets the override color
|
||||
virtual video::SColor getOverrideColor() const;
|
||||
|
||||
#if IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR > 8
|
||||
//! Gets the currently used text color
|
||||
virtual video::SColor getActiveColor() const;
|
||||
#endif
|
||||
|
||||
//! Sets if the static text should use the overide color or the
|
||||
//! color in the gui skin.
|
||||
|
Reference in New Issue
Block a user