Text gets converted by the PaintEngine

This commit is contained in:
Unknown 2018-04-29 20:04:46 +02:00
parent face7c0b0f
commit b1f507634e
2 changed files with 1 additions and 4 deletions

View File

@ -43,7 +43,6 @@ Mapper::Mapper(const string &executablePath, const string &executableName ) :
executablePath(executablePath), executablePath(executablePath),
executableName(executableName) executableName(executableName)
{ {
charConvUTF8 = CharEncodingConverter::createStandardConverter("UTF-8");
} }
int Mapper::start(int argc, char *argv[]) { int Mapper::start(int argc, char *argv[]) {
@ -802,7 +801,7 @@ int Mapper::start(int argc, char *argv[]) {
usage(); usage();
exit(1); exit(1);
} }
drawObject.text = charConvUTF8->convert(localizedText); drawObject.text = localizedText;
} }
generator.drawObject(drawObject); generator.drawObject(drawObject);

View File

@ -1,6 +1,5 @@
#pragma once #pragma once
#include "CharEncodingConverter.h"
#include "TileGenerator.h" #include "TileGenerator.h"
#include <getopt.h> #include <getopt.h>
#include <istream> #include <istream>
@ -75,7 +74,6 @@ private:
std::string heightMapNodesFile; std::string heightMapNodesFile;
bool foundGeometrySpec = false; bool foundGeometrySpec = false;
bool setFixedOrShrinkGeometry = false; bool setFixedOrShrinkGeometry = false;
CharEncodingConverter *charConvUTF8;
const std::string nodeColorsDefaultFile = "colors.txt"; const std::string nodeColorsDefaultFile = "colors.txt";
const std::string heightMapNodesDefaultFile = "heightmap-nodes.txt"; const std::string heightMapNodesDefaultFile = "heightmap-nodes.txt";