Browse Source

linux/gcc fixes: missing prototype and cast

master
Odilitime 4 years ago
parent
commit
6ab3912bf0
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      src/FormData.h
  2. 1
    1
      src/graphics/text/TextRasterizer.cpp

+ 1
- 0
src/FormData.h View File

@@ -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:

+ 1
- 1
src/graphics/text/TextRasterizer.cpp View File

@@ -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