mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-10-01 17:10:45 +00:00
fix: unglob all of /Build/Common
This commit is contained in:
@@ -143,7 +143,7 @@ unsigned short SFontData::Codepoints[FONTSIZE] =
|
||||
|
||||
CFontData::CFontData()
|
||||
{
|
||||
m_unicodeMap = unordered_map<unsigned int, unsigned short>();
|
||||
m_unicodeMap = std::unordered_map<unsigned int, unsigned short>();
|
||||
|
||||
m_sFontData = NULL;
|
||||
m_kerningTable = NULL;
|
||||
@@ -181,7 +181,7 @@ CFontData::CFontData(SFontData &sFontData, int *pbRawImage)
|
||||
// CREATE UNICODE MAP //
|
||||
for (unsigned int i = 0; i < sFontData.m_uiGlyphCount; i++)
|
||||
{
|
||||
unordered_map<unsigned int, unsigned short>::value_type pair(sFontData.Codepoints[i], i);
|
||||
std::unordered_map<unsigned int, unsigned short>::value_type pair(sFontData.Codepoints[i], i);
|
||||
m_unicodeMap.insert( pair );
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ SFontData *CFontData::getFontData()
|
||||
|
||||
unsigned short CFontData::getGlyphId(unsigned int unicodepoint)
|
||||
{
|
||||
unordered_map<unsigned int, unsigned short>::iterator out = m_unicodeMap.find(unicodepoint);
|
||||
std::unordered_map<unsigned int, unsigned short>::iterator out = m_unicodeMap.find(unicodepoint);
|
||||
if (out != m_unicodeMap.end())
|
||||
return out->second;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user