From f31d04d279b2fe990408ea4a6f12cddeafa6c2b0 Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Fri, 27 Oct 2017 15:25:11 +0200 Subject: [PATCH] Remove unused ScreenLayout#window.graphics why was that even there? --- js/term/debug.js | 6 +++--- js/term/screen_layout.js | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/js/term/debug.js b/js/term/debug.js index 21a9960..34424f7 100644 --- a/js/term/debug.js +++ b/js/term/debug.js @@ -366,9 +366,9 @@ module.exports = function attachDebugger (screen, connection) { let fancyGraphics = document.createElement('input') fancyGraphics.type = 'checkbox' - fancyGraphics.value = !!screen.layout.window.graphics + fancyGraphics.value = !!screen.layout.renderer.graphics fancyGraphics.addEventListener('change', e => { - screen.layout.window.graphics = +fancyGraphics.checked + screen.layout.renderer.graphics = +fancyGraphics.checked }) toolbarData = { @@ -465,7 +465,7 @@ module.exports = function attachDebugger (screen, connection) { let drawTime = Math.round((drawData.endTime - drawData.startTime) * 100) / 100 toolbarData.drawing['Last Update'] = `${drawData.reason} (${drawTime}ms)` - toolbarData.drawing['Fancy Graphics'].checked = !!screen.layout.window.graphics + toolbarData.drawing['Fancy Graphics'].checked = !!screen.layout.renderer.graphics for (let i in toolbarData) { let group = toolbarData[i] diff --git a/js/term/screen_layout.js b/js/term/screen_layout.js index 1260a7a..a47d6bb 100644 --- a/js/term/screen_layout.js +++ b/js/term/screen_layout.js @@ -22,7 +22,6 @@ module.exports = class ScreenLayout extends EventEmitter { gridScaleY: 1.2, fitIntoWidth: 0, fitIntoHeight: 0, - graphics: 0, debug: false }