comparison engine-runner.js @ 62:3355248e2638

Fixed a top-window display bug in curses.
author Atul Varma <varmaa@toolness.com>
date Fri, 16 May 2008 13:44:46 -0700
parents 7dc2c7bded08
children 5c35e18a9d1a
comparison
equal deleted inserted replaced
61:7714b3322ee3 62:3355248e2638
1 function Zui() { 1 function Zui() {
2 } 2 }
3 3
4 Zui.prototype = { 4 Zui.prototype = {
5 setVersion: function(version) {
6 },
5 7
6 // Returns a 2-element list containing the width and height of the 8 // Returns a 2-element list containing the width and height of the
7 // screen, in characters. The width may be 255, which means 9 // screen, in characters. The width may be 255, which means
8 // "infinite". 10 // "infinite".
9 11
93 self._isRunning = false; 95 self._isRunning = false;
94 }, 96 },
95 97
96 run: function() { 98 run: function() {
97 var size = self._zui.getSize(); 99 var size = self._zui.getSize();
100 self._zui.setVersion(self._engine.m_version);
98 101
99 self._isRunning = true; 102 self._isRunning = true;
100 self._engine.m_memory[0x20] = size[1]; 103 self._engine.m_memory[0x20] = size[1];
101 self._engine.m_memory[0x21] = size[0]; 104 self._engine.m_memory[0x21] = size[0];
102 self._continueRunning(); 105 self._continueRunning();