mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 06:54:45 +03:00
52908712c6
When allocating space in the texture atlas, we typically use a small padding to avoid accidentally interpolating textures into glyphs. When it comes to rendering images via iterm2 or sixel image protocols, the image emitted by the user may not exactly fill the cell dimensions, and due to the how the shader works to apply those textures we could end up revealing nearby images in the texture when displaying an unrelated image. This commit adjusts the texture atlas allocation when making space for image protocol textures; excess padding based on an overestimate of the cell dimensions is added to the right and bottom of the image, guaranteeing that that border will be filled with transparent pixels. This is a bit wasteful of texture space, but isn't egregiously bad and is easy to reason about and makes things look less janky. refs: #292 |
||
---|---|---|
.. | ||
examples | ||
src | ||
build.rs | ||
Cargo.toml |