Refresh viewport after setting renderer and set correct end refresh row
This commit is contained in:
@@ -105,13 +105,14 @@ export class RenderService extends Disposable implements IRenderService {
|
|||||||
// TODO: RenderCoordinator should be the only one to dispose the renderer
|
// TODO: RenderCoordinator should be the only one to dispose the renderer
|
||||||
this._renderer.dispose();
|
this._renderer.dispose();
|
||||||
this._renderer = renderer;
|
this._renderer = renderer;
|
||||||
|
this.refreshRows(0, this._rowCount - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private _fullRefresh(): void {
|
private _fullRefresh(): void {
|
||||||
if (this._isPaused) {
|
if (this._isPaused) {
|
||||||
this._needsFullRefresh = true;
|
this._needsFullRefresh = true;
|
||||||
} else {
|
} else {
|
||||||
this.refreshRows(0, this._rowCount);
|
this.refreshRows(0, this._rowCount - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,7 +123,7 @@ export class RenderService extends Disposable implements IRenderService {
|
|||||||
|
|
||||||
public onDevicePixelRatioChange(): void {
|
public onDevicePixelRatioChange(): void {
|
||||||
this._renderer.onDevicePixelRatioChange();
|
this._renderer.onDevicePixelRatioChange();
|
||||||
this.refreshRows(0, this._rowCount);
|
this.refreshRows(0, this._rowCount - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public onResize(cols: number, rows: number): void {
|
public onResize(cols: number, rows: number): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user