From e439ce849cf36cb3f47e894a329a850cd20496e5 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 29 Dec 2014 06:55:01 +0300 Subject: [PATCH] Specify default argument values, as per documentation --- SDL2pp/Font.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SDL2pp/Font.hh b/SDL2pp/Font.hh index dadbdf7..449a8a4 100644 --- a/SDL2pp/Font.hh +++ b/SDL2pp/Font.hh @@ -160,7 +160,7 @@ public: /// \see https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC22 /// //////////////////////////////////////////////////////////// - void SetStyle(int style); + void SetStyle(int style = TTF_STYLE_NORMAL); //////////////////////////////////////////////////////////// /// \brief Get the current outline size of the loaded font @@ -185,7 +185,7 @@ public: /// \see https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC24 /// //////////////////////////////////////////////////////////// - void SetOutline(int outline); + void SetOutline(int outline = 0); //////////////////////////////////////////////////////////// /// \brief Get the current hinting setting of the loaded font @@ -218,7 +218,7 @@ public: /// \see https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC26 /// //////////////////////////////////////////////////////////// - void SetHinting(int hinting); + void SetHinting(int hinting = TTF_HINTING_NORMAL); //////////////////////////////////////////////////////////// /// \brief Get the current kerning setting of the loaded font @@ -247,7 +247,7 @@ public: /// \see https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC28 /// //////////////////////////////////////////////////////////// - void SetKerning(bool allowed); + void SetKerning(bool allowed = true); //////////////////////////////////////////////////////////// /// \brief Get the maximum pixel height of all glyphs of the loaded font