Upgrade Utility
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Nz
|
||||
return m_bounds;
|
||||
}
|
||||
|
||||
Font* SimpleTextDrawer::GetFont(std::size_t index) const
|
||||
const std::shared_ptr<Font>& SimpleTextDrawer::GetFont(std::size_t index) const
|
||||
{
|
||||
NazaraAssert(index == 0, "Font index out of range");
|
||||
NazaraUnused(index);
|
||||
@@ -288,7 +288,7 @@ namespace Nz
|
||||
NazaraUnused(font);
|
||||
|
||||
#ifdef NAZARA_DEBUG
|
||||
if (m_font != font)
|
||||
if (m_font.get() != font)
|
||||
{
|
||||
NazaraInternalError("Not listening to " + PointerToString(font));
|
||||
return;
|
||||
@@ -309,7 +309,7 @@ namespace Nz
|
||||
NazaraUnused(font);
|
||||
|
||||
#ifdef NAZARA_DEBUG
|
||||
if (m_font != font)
|
||||
if (m_font.get() != font)
|
||||
{
|
||||
NazaraInternalError("Not listening to " + PointerToString(font));
|
||||
return;
|
||||
@@ -325,7 +325,7 @@ namespace Nz
|
||||
NazaraUnused(font);
|
||||
|
||||
#ifdef NAZARA_DEBUG
|
||||
if (m_font != font)
|
||||
if (m_font.get() != font)
|
||||
{
|
||||
NazaraInternalError("Not listening to " + PointerToString(font));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user