diff --git a/src/graphics/components/TextComponent.cpp b/src/graphics/components/TextComponent.cpp index 7d30e6899ca320b57d04835c53424d738b38ef6b..5ac47d7cee4fd5dfff326fb04238c46b07ca38ca 100644 --- a/src/graphics/components/TextComponent.cpp +++ b/src/graphics/components/TextComponent.cpp @@ -110,8 +110,9 @@ void TextComponent::rasterize(const int rawX, const int rawY) { //glyphs = textRasterizer->rasterize(text, rawX, windowWidth, wrapToX, width, height, glyphCount, endingX, endingY, wrapped); rasterizationRequest request; request.text = text; - // startX needs to be relative to the parent x - request.startX = rawX - x; + // startX needs to be relative to the parent x. Why? + request.startX = rawX; // - x + //std::cout << "TextComponent::rasterize - [" << text << "] request.startX: " << request.startX << " x: " << x << " rawX: " << rawX << std::endl; request.availableWidth = availableWidth; request.sourceStartX = rasterStartX; request.sourceStartY = rasterStartY; @@ -138,7 +139,7 @@ void TextComponent::rasterize(const int rawX, const int rawY) { // if we didn't we have a nice little texture starting at rawX potentially up to windowWidth // if we did wrap, then we start at wrapToX (0) and we're a big square texture if (response->wrapped) { - //std::cout << "it's wrapped starting at " << wrapToX << std::endl; + //std::cout << "[" << text << "] it's wrapped starting at " << wrapToX << std::endl; startX = wrapToX; } //std::cout << "startX: " << startX << std::endl;