Remove unused ScreenLayout#window.graphics

why was that even there?
webgl-renderer
cpsdqs 7 years ago
parent 78d32f7fdc
commit f31d04d279
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 6
      js/term/debug.js
  2. 1
      js/term/screen_layout.js

@ -366,9 +366,9 @@ module.exports = function attachDebugger (screen, connection) {
let fancyGraphics = document.createElement('input') let fancyGraphics = document.createElement('input')
fancyGraphics.type = 'checkbox' fancyGraphics.type = 'checkbox'
fancyGraphics.value = !!screen.layout.window.graphics fancyGraphics.value = !!screen.layout.renderer.graphics
fancyGraphics.addEventListener('change', e => { fancyGraphics.addEventListener('change', e => {
screen.layout.window.graphics = +fancyGraphics.checked screen.layout.renderer.graphics = +fancyGraphics.checked
}) })
toolbarData = { toolbarData = {
@ -465,7 +465,7 @@ module.exports = function attachDebugger (screen, connection) {
let drawTime = Math.round((drawData.endTime - drawData.startTime) * 100) / 100 let drawTime = Math.round((drawData.endTime - drawData.startTime) * 100) / 100
toolbarData.drawing['Last Update'] = `${drawData.reason} (${drawTime}ms)` 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) { for (let i in toolbarData) {
let group = toolbarData[i] let group = toolbarData[i]

@ -22,7 +22,6 @@ module.exports = class ScreenLayout extends EventEmitter {
gridScaleY: 1.2, gridScaleY: 1.2,
fitIntoWidth: 0, fitIntoWidth: 0,
fitIntoHeight: 0, fitIntoHeight: 0,
graphics: 0,
debug: false debug: false
} }

Loading…
Cancel
Save