mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Fix inconsistent factory function name
This commit is contained in:
parent
16e9ae131d
commit
5580720ae0
@ -315,7 +315,7 @@ private:
|
||||
////////////////////////////////////////////////////////////
|
||||
struct Page
|
||||
{
|
||||
[[nodiscard]] static std::optional<Page> make(bool smooth);
|
||||
[[nodiscard]] static std::optional<Page> create(bool smooth);
|
||||
explicit Page(Texture&& texture);
|
||||
|
||||
GlyphTable glyphs; //!< Table mapping code points to their corresponding glyph
|
||||
|
@ -467,7 +467,7 @@ Font::Page& Font::loadPage(unsigned int characterSize) const
|
||||
if (const auto it = m_pages.find(characterSize); it != m_pages.end())
|
||||
return it->second;
|
||||
|
||||
auto page = Page::make(m_isSmooth);
|
||||
auto page = Page::create(m_isSmooth);
|
||||
assert(page && "Font::loadPage() Failed to load page");
|
||||
return m_pages.emplace(characterSize, std::move(*page)).first->second;
|
||||
}
|
||||
@ -749,7 +749,7 @@ bool Font::setCurrentSize(unsigned int characterSize) const
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
std::optional<Font::Page> Font::Page::make(bool smooth)
|
||||
std::optional<Font::Page> Font::Page::create(bool smooth)
|
||||
{
|
||||
// Make sure that the texture is initialized by default
|
||||
Image image({128, 128}, Color::Transparent);
|
||||
|
Loading…
Reference in New Issue
Block a user