From c580eed971ff7ea0a769c4bb890d84afd9b569aa Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Mon, 16 May 2022 13:49:28 -0400 Subject: [PATCH] Revert "Remove initial property defaults" This reverts commit 5f63d732b200516dbb9426ed0a6765592264d28d. --- include/Text.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/Text.hpp b/include/Text.hpp index 0d14e46..ab4b915 100644 --- a/include/Text.hpp +++ b/include/Text.hpp @@ -132,11 +132,11 @@ class Text { ::DrawTextPro(font, text.c_str(), position, origin, rotation, fontSize, spacing, color); } - std::string text; - float fontSize; - ::Color color; - ::Font font; - float spacing; + std::string text = ""; + float fontSize = 10; + ::Color color = WHITE; + ::Font font = ::GetFontDefault(); + float spacing = 0; }; } // namespace raylib