fill bug fix, brush canvas fix

This commit is contained in:
Hugh Bord 2021-12-17 20:09:59 +10:00
父節點 b272115e52
當前提交 ecce5d4959
共有 2 個檔案被更改,包括 4 行新增4 行删除

查看文件

@ -175,7 +175,7 @@ export default {
if (this.getBlocks[y] && this.getBlocks[y][x]) {
const curBlock = this.getBlocks[y][x];
if (curBlock.bg !== null) {
if (curBlock.bg !== undefined) {
this.ctx.fillStyle = this.mircColours[curBlock.bg];
this.ctx.fillRect(
@ -186,11 +186,11 @@ export default {
);
}
if (curBlock.fg !== null) {
if (curBlock.fg !== undefined) {
this.ctx.fillStyle = this.mircColours[curBlock.fg];
}
if (curBlock.char !== null) {
if (curBlock.char !== undefined) {
this.ctx.fillStyle = this.mircColours[curBlock.fg];
this.ctx.fillText(
curBlock.char,

查看文件

@ -1483,7 +1483,7 @@ export default {
this.storeDiffBlocks(
x,
y,
this.currentAsciiLayerBlocks[y][x],
current,
fillBlocks[y][x]
);