Browse Source

debug change, remove dead/outdated comment

master
Odilitime 5 years ago
parent
commit
953f95162f
  1. 7
      src/graphics/text/TextRasterizer.cpp

7
src/graphics/text/TextRasterizer.cpp

@ -133,7 +133,7 @@ std::unique_ptr<sizeResponse> TextRasterizer::size(const rasterizationRequest &r @@ -133,7 +133,7 @@ std::unique_ptr<sizeResponse> 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<sizeResponse> TextRasterizer::size(const rasterizationRequest &r @@ -209,12 +209,11 @@ std::unique_ptr<sizeResponse> 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<int, int>>(std::pair<int, int>(response->width, response->height));
return response;
}

Loading…
Cancel
Save