From adaecc22cfc101f68933f4b38eae4f77c2062bc3 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Thu, 17 Sep 2015 15:21:07 +0300 Subject: [PATCH] Fix return type to match upstream API --- SDL2pp/Font.cc | 2 +- SDL2pp/Font.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SDL2pp/Font.cc b/SDL2pp/Font.cc index f761223..5d2a181 100644 --- a/SDL2pp/Font.cc +++ b/SDL2pp/Font.cc @@ -118,7 +118,7 @@ int Font::GetLineSkip() const { return TTF_FontLineSkip(font_); } -int Font::GetNumFaces() const { +long Font::GetNumFaces() const { return TTF_FontFaces(font_); } diff --git a/SDL2pp/Font.hh b/SDL2pp/Font.hh index 6ba25ed..ad6f65f 100644 --- a/SDL2pp/Font.hh +++ b/SDL2pp/Font.hh @@ -362,7 +362,7 @@ public: /// \see https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC33 /// //////////////////////////////////////////////////////////// - int GetNumFaces() const; + long GetNumFaces() const; //////////////////////////////////////////////////////////// /// \brief Test if the current font face of the loaded font is a fixed width font