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
1 changed files with 13 additions and 11 deletions

View File

@ -11,6 +11,7 @@ namespace vkvm {
auto setDefaultValues() -> void {
impl.localMemoryWarn = false;
if (getSharedMemory() != nullptr) {
if(getSharedMemory() == &impl.localSharedMemory[0]) {
setMode(GraphicMode::RGB);
setCharactersPerRow(60);
setCharactersPerColumn(20);
@ -23,6 +24,7 @@ namespace vkvm {
setTimerInterruptInterval(1000);
setFont(FontType::ProFontIIX);
}
}
impl.localMemoryWarn = true;
}