From 953f95162fac55886f108db769c0e63593f7b590 Mon Sep 17 00:00:00 2001 From: Odilitime Date: Mon, 4 Sep 2017 16:13:33 -0700 Subject: [PATCH] debug change, remove dead/outdated comment --- src/graphics/text/TextRasterizer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/graphics/text/TextRasterizer.cpp b/src/graphics/text/TextRasterizer.cpp index a3ca4fa..db53f73 100644 --- a/src/graphics/text/TextRasterizer.cpp +++ b/src/graphics/text/TextRasterizer.cpp @@ -133,7 +133,7 @@ std::unique_ptr TextRasterizer::size(const rasterizationRequest &r if (request.noWrap) { glyphCount = i; // we're done - std::cout << "TextRasterizer::size - newline found no wrap is on" << std::endl; + std::cout << "TextRasterizer::size - newline found no wrap is on [" << request.text << "]" << std::endl; break; } else { xmax=std::max(xmax, cx); @@ -209,12 +209,11 @@ std::unique_ptr TextRasterizer::size(const rasterizationRequest &r response->height = textureHeight; //std::cout << "adjusted:" << (int)width << "x" << (int)height << std::endl; } - + + // inline position where we leave off response->endingX = cx - request.sourceStartX; response->endingY = cy + 2 + request.sourceStartY; - // FIXME: how about endingX,Y? - //return std::make_unique>(std::pair(response->width, response->height)); return response; }