~ fixed initialize without shared memory
This commit is contained in:
parent
6220a99e85
commit
a42af25abc
24
src/vkvm.cpp
24
src/vkvm.cpp
@ -13,17 +13,19 @@ void initialize(int pid) {
|
|||||||
|
|
||||||
impl.sharedMemorySize = 8000;// NOLINT
|
impl.sharedMemorySize = 8000;// NOLINT
|
||||||
|
|
||||||
//set default values
|
if(getSharedMemory() != nullptr) {
|
||||||
setCharactersPerRow(60);// NOLINT
|
//set default values
|
||||||
setCharactersPerColumn(20);// NOLINT
|
setCharactersPerRow(60);// NOLINT
|
||||||
setHeight(600);// NOLINT
|
setCharactersPerColumn(20);// NOLINT
|
||||||
setWidth(800);// NOLINT
|
setHeight(600);// NOLINT
|
||||||
setMousePosition(42,42);// NOLINT
|
setWidth(800);// NOLINT
|
||||||
setBackgroundColor(Color(200,50,20));// NOLINT
|
setMousePosition(42, 42);// NOLINT
|
||||||
setForegroundColor(Color(20,200,50));// NOLINT
|
setBackgroundColor(Color(200, 50, 20));// NOLINT
|
||||||
setMode(GraphicMode::TrueColor);// NOLINT
|
setForegroundColor(Color(20, 200, 50));// NOLINT
|
||||||
setRedrawInterval(20);// NOLINT
|
setMode(GraphicMode::TrueColor);// NOLINT
|
||||||
setTimerInterruptInterval(10);// NOLINT
|
setRedrawInterval(20);// NOLINT
|
||||||
|
setTimerInterruptInterval(10);// NOLINT
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool registerEvent(EventType type, const std::function<void()> &handler) {
|
bool registerEvent(EventType type, const std::function<void()> &handler) {
|
||||||
|
Loading…
Reference in New Issue
Block a user