Sfoglia il codice sorgente

Fixed invalid offset for certain characters when rendering text

BearishSun 9 anni fa
parent
commit
8587f277ce
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  1. 0 4
      Source/BansheeCore/Source/BsTextData.cpp

+ 0 - 4
Source/BansheeCore/Source/BsTextData.cpp

@@ -242,10 +242,6 @@ namespace BansheeEngine
 			}
 			else
 			{
-				const CHAR_DESC& firstChar = mTextData->getChar(word.getCharsStart());
-				if (firstChar.xOffset < 0)
-					penX += -firstChar.xOffset; // Offset characters so that they start at 0
-
 				UINT32 kerning = 0;
 				for(UINT32 j = word.getCharsStart(); j <= word.getCharsEnd(); j++)
 				{