Realise blink function and make speicail character with a speicial signal. and realise display the correct content when string content is bigger than window size.

This commit is contained in:
my 2019-12-18 16:53:20 +01:00
parent f6789ced97
commit 43f042ebdf
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
// //
// Created by my on 2019/11/16. // Created by my on 2019/11/16.
// //
#include <internal.hpp>
#include "TextRenderer.h" #include "TextRenderer.h"
TextRenderer::TextRenderer(int windowWidth, int windowHeight, vkvm::Color _backGroundColor, vkvm::Color fontColor, vkvm::Color speicialFontColor, TextRenderer::TextRenderer(int windowWidth, int windowHeight, vkvm::Color _backGroundColor, vkvm::Color fontColor, vkvm::Color speicialFontColor,
@ -211,6 +212,8 @@ void TextRenderer::blink1() {
} }
signal = !signal; signal = !signal;
vkvm::callEvent(vkvm::Redraw);
std::this_thread::sleep_for(std::chrono::milliseconds(800)); std::this_thread::sleep_for(std::chrono::milliseconds(800));
} }
} }