1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 13:52:55 +03:00
wezterm/term/src
Wez Furlong 23ebcf324d term: revise image geometry calculation
The texture coordinates into the source image weren't quite right;
previously we'd do this math:

num_cells = (image_size / cell_size).ceil()
delta = num_cells / image_size

that would result in the image being stretched to fit across the rounded
up number of cells, leading to a distored image.

This commit changes the delta calculation to be based on the remaining
number of pixels in a given dimension relative to the cell size.

refs: #1300
refs: #1270
2021-12-11 10:51:13 -07:00
..
terminalstate term: revise image geometry calculation 2021-12-11 10:51:13 -07:00
test fonts: Fix shaping metrics 2021-09-22 08:34:40 -07:00
color.rs RgbColor: hide internal red, green, blue fields 2021-07-10 14:22:31 -07:00
config.rs introduce unicode_version config 2021-11-25 09:00:45 -07:00
input.rs gui: cancel mouse click streak when the cursor has moved to a different cell (fixes #910) 2021-09-08 17:38:59 -07:00
lib.rs term: avoid dirtying lines when the cursor moves 2021-08-08 22:47:10 -07:00
screen.rs Fix SU (scroll up) using default-blank cells 2021-09-04 17:35:33 -07:00
selection.rs term: make serde optional 2020-06-13 10:04:20 -07:00
terminal.rs model: replace LineBits::DIRTY with a sequence number 2021-08-08 12:45:08 -07:00