mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 20:24:04 +08:00
update files
This commit is contained in:
parent
50458cb335
commit
53891db655
@ -30,7 +30,6 @@ function CanvasXTerm(font){
|
|||||||
this.canvas = document.createElement('canvas');
|
this.canvas = document.createElement('canvas');
|
||||||
this.canvas.style.backgroundColor = 'transparent';
|
this.canvas.style.backgroundColor = 'transparent';
|
||||||
this.brush = this.canvas.getContext('2d');
|
this.brush = this.canvas.getContext('2d');
|
||||||
this.baseY = this.font.lineHeight / 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CanvasXTerm prototype
|
// CanvasXTerm prototype
|
||||||
@ -67,7 +66,7 @@ CanvasXTerm.prototype = {
|
|||||||
|
|
||||||
for (i = 0; i < rows; i++) {
|
for (i = 0; i < rows; i++) {
|
||||||
x = 0;
|
x = 0;
|
||||||
y = i * this.font.lineHeight + this.baseY;
|
y = (i + 0.5) * this.font.lineHeight;
|
||||||
text = '';
|
text = '';
|
||||||
|
|
||||||
for (j = 0; j < cols; j++) {
|
for (j = 0; j < cols; j++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user