fixed make error with to_string(enum)
This commit is contained in:
parent
08b9c26dd1
commit
5858f5c4c3
|
@ -47,7 +47,12 @@ int main() {
|
||||||
vkvm::initialize(0);
|
vkvm::initialize(0);
|
||||||
vkvm::setLogLevel(vkvm::DEBUG);
|
vkvm::setLogLevel(vkvm::DEBUG);
|
||||||
|
|
||||||
Font font(std::string() + "../res/font" + std::to_string(vkvm::getFont()) + ".bmp", std::string() + "../res/font" + std::to_string(vkvm::getFont()) + ".toml");
|
Font font(
|
||||||
|
std::string() + "../res/font" +
|
||||||
|
std::to_string(static_cast<int>(vkvm::getFont())) + ".bmp",
|
||||||
|
std::string() + "../res/font" +
|
||||||
|
std::to_string(static_cast<int>(vkvm::getFont())) + ".toml");
|
||||||
|
|
||||||
std::thread thread(std::bind(threadHandler, font));
|
std::thread thread(std::bind(threadHandler, font));
|
||||||
|
|
||||||
vkvm::registerEvent(vkvm::EventType::RenderText, [&font]() {
|
vkvm::registerEvent(vkvm::EventType::RenderText, [&font]() {
|
||||||
|
@ -98,7 +103,11 @@ int main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
vkvm::registerEvent(vkvm::EventType::UpdateControlRegisters, [&font]() {
|
vkvm::registerEvent(vkvm::EventType::UpdateControlRegisters, [&font]() {
|
||||||
font.load(std::string() + "../res/font" + std::to_string(vkvm::getFont()) + ".bmp", std::string() + "../res/font" + std::to_string(vkvm::getFont()) + ".toml");
|
font.load(
|
||||||
|
std::string() + "../res/font" +
|
||||||
|
std::to_string(static_cast<int>(vkvm::getFont())) + ".bmp",
|
||||||
|
std::string() + "../res/font" +
|
||||||
|
std::to_string(static_cast<int>(vkvm::getFont())) + ".toml");
|
||||||
});
|
});
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
Loading…
Reference in New Issue