Skip to content

Commit

Permalink
Merge pull request #4239 from Tyriar/4224_mcr_canvas_ydisp
Browse files Browse the repository at this point in the history
Correctly offset mcr check on canvas renderer
  • Loading branch information
Tyriar committed Oct 28, 2022
2 parents fcf378b + b0672aa commit 43d8db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/xterm-addon-canvas/src/BaseRenderLayer.ts
Expand Up @@ -357,7 +357,7 @@ export abstract class BaseRenderLayer extends Disposable implements IRenderLayer
*/
protected _drawChars(cell: ICellData, x: number, y: number): void {
const chars = cell.getChars();
this._cellColorResolver.resolve(cell, x, y);
this._cellColorResolver.resolve(cell, x, this._bufferService.buffer.ydisp + y);
let glyph: IRasterizedGlyph;
if (chars && chars.length > 1) {
glyph = this._charAtlas.getRasterizedGlyphCombinedChar(chars, this._cellColorResolver.result.bg, this._cellColorResolver.result.fg, this._cellColorResolver.result.ext);
Expand Down

0 comments on commit 43d8db7

Please sign in to comment.