From 31fd4e311d9f777aed8af0d6c4e50a94289c38bf Mon Sep 17 00:00:00 2001 From: ulukyn Date: Tue, 17 Jul 2018 16:59:26 +0200 Subject: [PATCH] Added: Fix a bug with web textures on view_bitmap. The texture must keep the case, only texture from bnp can be convert to lower case --HG-- branch : compatibility-develop --- code/nel/src/gui/view_bitmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/src/gui/view_bitmap.cpp b/code/nel/src/gui/view_bitmap.cpp index 79b8c32a4..a356acaca 100644 --- a/code/nel/src/gui/view_bitmap.cpp +++ b/code/nel/src/gui/view_bitmap.cpp @@ -311,7 +311,7 @@ namespace NLGUI prop = (char*) xmlGetProp( cur, (xmlChar*)"texture" ); if (prop) { - string TxName = toLower((const char *) prop); + string TxName = (const char *) prop; setTexture (TxName); //CInterfaceManager *pIM = CInterfaceManager::getInstance(); //CViewRenderer &rVR = *CViewRenderer::getInstance(); @@ -465,7 +465,7 @@ namespace NLGUI } } else - _TextureId.setTexture (TxName.c_str (), _TxtOffsetX, _TxtOffsetY, _TxtWidth, _TxtHeight, false); + _TextureId.setTexture (toLower(TxName).c_str (), _TxtOffsetX, _TxtOffsetY, _TxtWidth, _TxtHeight, false); } // ----------------------------------------------------------------------------