mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-28 13:46:13 +01:00
add missing asserts in Font.cpp
This commit is contained in:
1 parent
5b910f8761
commit
5275e589f5
1 file changed
+2
@@ -161,6 +161,7 @@ const sfTexture* sfFont_getTexture(sfFont* font, unsigned int characterSize)
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
void sfFont_setSmooth(sfFont* font, bool smooth)
|
void sfFont_setSmooth(sfFont* font, bool smooth)
|
||||||
{
|
{
|
||||||
|
assert(font);
|
||||||
font->This.setSmooth(smooth);
|
font->This.setSmooth(smooth);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,6 +169,7 @@ void sfFont_setSmooth(sfFont* font, bool smooth)
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
bool sfFont_isSmooth(const sfFont* font)
|
bool sfFont_isSmooth(const sfFont* font)
|
||||||
{
|
{
|
||||||
|
assert(font);
|
||||||
return font->This.isSmooth();
|
return font->This.isSmooth();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user