Some early functionality for the new display panel

This commit is contained in:
Jeff Parsons 2015-01-28 11:59:40 -08:00 committed by jeffpar
commit 0ffe6c7637
5 changed files with 251 additions and 35 deletions

View file

@ -4299,10 +4299,10 @@ Video.prototype.updateScreenGraphicsCGA = function(addrScreen, addrScreenLimit)
* artifacts along the edges of those rectangles. So it appears I must continue to redraw the entire canvasScreenBuffer
* on every change.
*
var xScreen = ((xDirty * this.cxScreen) / this.nCols);
var yScreen = ((yDirty * this.cyScreen) / this.nRows);
var cxScreen = ((cxDirty * this.cxScreen) / this.nCols);
var cyScreen = ((cyDirty * this.cyScreen) / this.nRows);
var xScreen = (((xDirty * this.cxScreen) / this.nCols) | 0);
var yScreen = (((yDirty * this.cyScreen) / this.nRows) | 0);
var cxScreen = (((cxDirty * this.cxScreen) / this.nCols) | 0);
var cyScreen = (((cyDirty * this.cyScreen) / this.nRows) | 0);
this.contextScreen.drawImage(this.canvasScreenBuffer, xDirty, yDirty, cxDirty, cyDirty, xScreen, yScreen, cxScreen, cyScreen);
*/
this.contextScreen.drawImage(this.canvasScreenBuffer, 0, 0, this.nCols, this.nRows, 0, 0, this.cxScreen, this.cyScreen);