diff --git a/src/internal.cpp b/src/internal.cpp index 3ec3b87..a889c4a 100644 --- a/src/internal.cpp +++ b/src/internal.cpp @@ -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; }