stbtt text testing succesful

This commit is contained in:
2017-02-05 20:15:52 +00:00
parent e2792534bc
commit 7f8cbd0981
10 changed files with 113 additions and 22 deletions

View File

@@ -266,10 +266,10 @@ bool LayoutManager::load(const char* path)
}
printf("Parsing layout: %s\n", id_str);
uint16_t id = const_hash(id_str);
auto& p = m_layouts.try_emplace(id);
if (p.second)
auto p = m_layouts.find(id);
if (p == m_layouts.end())
{
auto& node = p.first->second;
auto& node = m_layouts[id];
node.m_manager = this;
// try to copy the old size values
if (old.count(id))