Revert dependency updates in #9836 (#10089)

Due to: https://github.com/zed-industries/zed/issues/9985 and an
abundance of caution, I'm reverting the image and svg rendering updates
for now until we can debug the issue. cc: @niklaswimmer

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki 2024-04-02 11:27:48 -07:00 committed by GitHub
parent 6121bfc5a4
commit 55c897d993
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 267 additions and 496 deletions

View file

@ -425,8 +425,9 @@ impl MacTextSystemState {
);
if params.is_emoji {
// Convert from RGBA with premultiplied alpha to RGBA with straight alpha.
// Convert from RGBA with premultiplied alpha to BGRA with straight alpha.
for pixel in bytes.chunks_exact_mut(4) {
pixel.swap(0, 2);
let a = pixel[3] as f32 / 255.;
pixel[0] = (pixel[0] as f32 / a) as u8;
pixel[1] = (pixel[1] as f32 / a) as u8;