mirror of
https://github.com/wez/wezterm.git
synced 2024-09-11 14:25:57 +03:00
When trying to display a 4k image there is a high chance that we'll run out of texture space and then render with no images displayed. This commit changes the binary yes/no allow-images into a a series of attempts: display at natural size, scale down by 2, 4, then 8, then give up on images. While looking at this, I noticed that we had a TOCTOU in the blob lease stuff in the case where we might very quickly try the handle the same image in succession, and end up deleting a file out from under a live lease. I've put in place a simple bandaid for that, but it's probably worth revisiting the concurrency model for that. |
||
---|---|---|
.. | ||
content_id.rs | ||
error.rs | ||
lease_id.rs | ||
lease.rs | ||
lib.rs | ||
manager.rs | ||
simple_tempdir.rs | ||
storage.rs |