Browse Source

linux/gcc fixes: missing prototype and cast

master
Odilitime 5 years ago
parent
commit
6ab3912bf0
  1. 1
      src/FormData.h
  2. 2
      src/graphics/text/TextRasterizer.cpp

1
src/FormData.h

@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
#include "html/TagNode.h"
std::unique_ptr<std::map<std::string, std::string>> buildFormData(std::shared_ptr<Node> formNode, std::unique_ptr<std::map<std::string, std::string>> result);
std::unique_ptr<std::vector<Node>> searchNodeTree(const std::shared_ptr<Node> &node, std::unique_ptr<std::vector<Node>> ret);
class FormData {
public:

2
src/graphics/text/TextRasterizer.cpp

@ -193,7 +193,7 @@ std::unique_ptr<sizeResponse> TextRasterizer::size(const rasterizationRequest &r @@ -193,7 +193,7 @@ std::unique_ptr<sizeResponse> TextRasterizer::size(const rasterizationRequest &r
std::cout << "TextRasterizer::size - resp.y0max: " << response->y0max << " maxy0: " << maxy0 << std::endl;
}
//std::cout << "y1max: " << y1max << " lines: " << response->lines << std::endl;
int textureHeight = (y1max - response->y0max) * response->lines;
int textureHeight = (y1max - response->y0max) * static_cast<int>(response->lines);
//int textureHeight = y1max * response->lines;
//y1max *= response->lines;
//std::cout << "initial:" << (int)width << "x" << (int)height << std::endl;

Loading…
Cancel
Save