only set default values if local shared memory is used

This commit is contained in:
Julian Hinxlage 2020-01-07 15:25:06 +01:00
parent 34388786e6
commit 730b49378c

View File

@ -11,17 +11,19 @@ namespace vkvm {
auto setDefaultValues() -> void {
impl.localMemoryWarn = false;
if (getSharedMemory() != nullptr) {
setMode(GraphicMode::RGB);
setCharactersPerRow(60);
setCharactersPerColumn(20);
setHeight(600);
setWidth(800);
setMousePosition(42, 42);
setBackgroundColor(black);
setForegroundColor(white);
setRedrawInterval(500);
setTimerInterruptInterval(1000);
setFont(FontType::ProFontIIX);
if(getSharedMemory() == &impl.localSharedMemory[0]) {
setMode(GraphicMode::RGB);
setCharactersPerRow(60);
setCharactersPerColumn(20);
setHeight(600);
setWidth(800);
setMousePosition(42, 42);
setBackgroundColor(black);
setForegroundColor(white);
setRedrawInterval(500);
setTimerInterruptInterval(1000);
setFont(FontType::ProFontIIX);
}
}
impl.localMemoryWarn = true;
}