mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:30:05 +00:00
Preload font resources
This commit is contained in:
parent
6ff4718ef4
commit
28ea12cbfe
7 changed files with 53 additions and 3 deletions
|
|
@ -250,6 +250,7 @@ std::shared_ptr<Font> Font::Create(const std::string& resource)
|
|||
auto it = fontMap_.find(resource);
|
||||
if (it != fontMap_.end())
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(debug) << logPrefix_ << "Font already created";
|
||||
return it->second;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue