// When the editor window is closed, exit the TileEditorMode private void EditorWindowClosed(object sender, FormClosedEventArgs e) { gpu.TileEditorMode = false; // Restore the previous graphics mode kernel.MemMgr.VICKY.WriteByte(0, previousGraphicMode); tileEditor.Dispose(); tileEditor = null; }
// When the editor window is closed, exit the TileEditorMode private void EditorWindowClosed(object sender, FormClosedEventArgs e) { system.GPU.TileEditorMode = false; // Restore the previous graphics mode //system.VICKY.WriteByte(0, previousGraphicMode); FoenixSystem.Current.MemoryManager.WriteByte(MemoryMap.VICKY_BASE_ADDR, previousGraphicMode); tileEditor.Dispose(); tileEditor = null; }