Skip to content
Snippets Groups Projects
Commit a99c7c10 authored by Joakim Hunskaar's avatar Joakim Hunskaar
Browse files

added width, height to nukleardraw in draw_text

parent bc564132
No related tags found
1 merge request!13added width, height to nukleardraw in draw_text
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment