Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
8876e04c15
|
@ -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