From c44fecc655c772fa43cb6c25d0fedf9628205313 Mon Sep 17 00:00:00 2001 From: guillaume abel Date: Fri, 3 Nov 2023 18:59:35 +0100 Subject: [PATCH] BLUGA: Fix --- .../include/B-luga-graphics/Raylib/Graphics/Graphics.hpp | 2 +- libs/B-luga/include/B-luga/Json.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/B-luga-graphics/include/B-luga-graphics/Raylib/Graphics/Graphics.hpp b/libs/B-luga-graphics/include/B-luga-graphics/Raylib/Graphics/Graphics.hpp index fe551e2..c8214d6 100644 --- a/libs/B-luga-graphics/include/B-luga-graphics/Raylib/Graphics/Graphics.hpp +++ b/libs/B-luga-graphics/include/B-luga-graphics/Raylib/Graphics/Graphics.hpp @@ -287,7 +287,7 @@ namespace Raylib { static int measureText(const std::string text, int fontSize); - static std::unique_ptr fromText(const std::string &text, Vector2 position, float fontSize, Color color); + static std::unique_ptr fromText(const std::string &text, Vector2 position = Vector2(0, 0), float fontSize = 5.0F, Color color = Color(0, 0, 0)); virtual ~Text() = default; diff --git a/libs/B-luga/include/B-luga/Json.hpp b/libs/B-luga/include/B-luga/Json.hpp index 5e6be0f..bbf7cb7 100644 --- a/libs/B-luga/include/B-luga/Json.hpp +++ b/libs/B-luga/include/B-luga/Json.hpp @@ -126,7 +126,7 @@ class Json { return (datas); } - bool isDataExist(nlohmann::basic_json<> jsonData, const std::string &index) + static bool isDataExist(nlohmann::basic_json<> jsonData, const std::string &index) { if (jsonData[index] == nullptr) { return (false);