Skip to content

Commit

Permalink
BLUGA-GRAPHICS: Show more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Nov 4, 2023
1 parent 5fb2b78 commit fe379b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/B-luga-graphics/include/B-luga-graphics/TextSystems.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace Systems {
float fontSize = (fsz.fsz * static_cast<float>(Raylib::Window::getScreenWidth())) / denominator;

text.setCurrentFontSize(fontSize);
Logger::info("FONTSIZE RESPONSIVE: " + std::to_string(fontSize));
}

static void setPositionResponsive(Raylib::Text &text, Types::Position &pos)
Expand All @@ -45,6 +46,7 @@ namespace Systems {
Types::FontSize defaultFsz = {text.getFontSize()};
setFontSizeResponsive(text, defaultFsz);
if (arrFsz.exist(id)) {
Logger::info("Setting font size to " + std::to_string(arrFsz[id].fsz));
setFontSizeResponsive(text, arrFsz[id]);
}

Expand Down

0 comments on commit fe379b2

Please sign in to comment.