mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Fix scaling of atlas slab size for negative zoom levels
Part of #233913
This commit is contained in:
@@ -55,7 +55,7 @@ export class TextureAtlasSlabAllocator implements ITextureAtlasAllocator {
|
||||
}));
|
||||
|
||||
this._slabW = Math.min(
|
||||
options?.slabW ?? (64 << (Math.floor(getActiveWindow().devicePixelRatio) - 1)),
|
||||
options?.slabW ?? (64 << Math.max(Math.floor(getActiveWindow().devicePixelRatio) - 1, 0)),
|
||||
this._canvas.width
|
||||
);
|
||||
this._slabH = Math.min(
|
||||
|
||||
Reference in New Issue
Block a user