chore: Revert "gpui: update dependencies" (#9774)
Reverts zed-industries/zed#9741 /cc @niklaswimmer it looks like that PR change broke our rendering of avatars (as @bennetbo found out) - they have a blue-ish tint now, which I suppose might have to do with change between BGRA and RGBA. I'm gonna revert it for now, let's reopen it though.  Release Notes: - N/A
This commit is contained in:
parent
6776688987
commit
a7047f67fb
8 changed files with 600 additions and 731 deletions
|
@ -1,6 +1,6 @@
|
|||
use crate::{size, DevicePixels, Result, SharedString, Size};
|
||||
use anyhow::anyhow;
|
||||
use image::RgbaImage;
|
||||
use image::{Bgra, ImageBuffer};
|
||||
use std::{
|
||||
borrow::Cow,
|
||||
fmt,
|
||||
|
@ -38,12 +38,12 @@ pub struct ImageId(usize);
|
|||
pub struct ImageData {
|
||||
/// The ID associated with this image
|
||||
pub id: ImageId,
|
||||
data: RgbaImage,
|
||||
data: ImageBuffer<Bgra<u8>, Vec<u8>>,
|
||||
}
|
||||
|
||||
impl ImageData {
|
||||
/// Create a new image from the given data.
|
||||
pub fn new(data: RgbaImage) -> Self {
|
||||
pub fn new(data: ImageBuffer<Bgra<u8>, Vec<u8>>) -> Self {
|
||||
static NEXT_ID: AtomicUsize = AtomicUsize::new(0);
|
||||
|
||||
Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue