Skip to content

Commit

Permalink
BLUGA-GRAPHICS: Remove mention currentFontSize
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Nov 4, 2023
1 parent 08d0b1c commit 058abf9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ namespace Raylib {
TextImpl::TextImpl(std::string text, Vector2 position, float fontSize, Raylib::Color color)
: _text(std::move(text)),
_fontSize(fontSize),
_currentFontSize(fontSize),
_color(color),
_position(position),
_pixelPosition(position)
Expand All @@ -229,7 +228,7 @@ namespace Raylib {
::Color textColor = {_color.r, _color.g, _color.b, _color.a};
::Vector2 pos = {_pixelPosition.x, _pixelPosition.y};

DrawTextEx(GetFontDefault(), _text.c_str(), pos, _currentFontSize, spacing, textColor);
DrawTextEx(GetFontDefault(), _text.c_str(), pos, _fontSize, spacing, textColor);
}

void TextImpl::drawPro(Vector2 origin, float rotation, float spacing)
Expand All @@ -244,7 +243,7 @@ namespace Raylib {
pos,
textOrigin,
rotation,
_currentFontSize,
_fontSize,
spacing,
textColor);
}
Expand Down

0 comments on commit 058abf9

Please sign in to comment.