From a99c7c104f4d3cae019388fd8321847dabc5bed9 Mon Sep 17 00:00:00 2001 From: Joakim Hunskaar <joakim.borge.hunskar@gmail.com> Date: Wed, 2 Apr 2025 14:07:19 +0200 Subject: [PATCH] added width, height to nukleardraw in draw_text --- .../subprojects/animationwindow/src/AnimationWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp b/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp index 4c0c1ec..8820d3f 100644 --- a/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp +++ b/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp @@ -261,7 +261,7 @@ void TDT4102::AnimationWindow::draw_text(TDT4102::Point topLeftPoint, std::strin textWindowCounter++; std::stringstream windowName; windowName << "text" << textWindowCounter; - startNuklearDraw(topLeftPoint, windowName.str()); + startNuklearDraw(topLeftPoint, windowName.str(), textToShow.size()*fontSize, fontSize); fontCache.setFont(context, font, fontSize); nk_color textColour{color.redChannel, color.greenChannel, color.blueChannel, color.alphaChannel}; nk_text_colored(context, textToShow.c_str(), textToShow.size(), NK_TEXT_ALIGN_LEFT, textColour); -- GitLab