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 { auto setDefaultValues() -> void {
impl.localMemoryWarn = false; impl.localMemoryWarn = false;
if (getSharedMemory() != nullptr) { if (getSharedMemory() != nullptr) {
setMode(GraphicMode::RGB); if(getSharedMemory() == &impl.localSharedMemory[0]) {
setCharactersPerRow(60); setMode(GraphicMode::RGB);
setCharactersPerColumn(20); setCharactersPerRow(60);
setHeight(600); setCharactersPerColumn(20);
setWidth(800); setHeight(600);
setMousePosition(42, 42); setWidth(800);
setBackgroundColor(black); setMousePosition(42, 42);
setForegroundColor(white); setBackgroundColor(black);
setRedrawInterval(500); setForegroundColor(white);
setTimerInterruptInterval(1000); setRedrawInterval(500);
setFont(FontType::ProFontIIX); setTimerInterruptInterval(1000);
setFont(FontType::ProFontIIX);
}
} }
impl.localMemoryWarn = true; impl.localMemoryWarn = true;
} }