Odilitime 5 years ago
parent
commit
bf182a9157
  1. 4
      src/graphics/text/TextRasterizer.cpp
  2. 1
      src/html/HTMLParser.h

4
src/graphics/text/TextRasterizer.cpp

@ -315,9 +315,9 @@ std::unique_ptr<rasterizationResponse> TextRasterizer::rasterize(const rasteriza @@ -315,9 +315,9 @@ std::unique_ptr<rasterizationResponse> TextRasterizer::rasterize(const rasteriza
//std::cout << "xd: " << static_cast<int>(response->x1-response->x0) << " yd: " << static_cast<int>(response->y0-response->y1) << std::endl;
//std::cout << "Requesting texture of " << response->textureWidth << "x" << response->textureHeight << "max: " << win->maxTextureSize << std::endl;
if (response->textureHeight > win->maxTextureSize) {
if (response->textureHeight > static_cast<unsigned int>(win->maxTextureSize)) {
std::cout << "Truncating text texture to fit in your video card" << std::endl;
response->textureHeight = win->maxTextureSize;
response->textureHeight = static_cast<unsigned int>(win->maxTextureSize);
}
// texture coords

1
src/html/HTMLParser.h

@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
#include "TagNode.h"
#include <string>
void autoCloseTag(std::shared_ptr<Node> currentNode, std::shared_ptr<Node> rootNode, std::string ok, std::string notok);
void printNode(const std::shared_ptr<Node> node, const int indent);
class HTMLParser {

Loading…
Cancel
Save