only set default values if local shared memory is used
This commit is contained in:
parent
34388786e6
commit
730b49378c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue