diff options
Diffstat (limited to 'alacritty_terminal/src/graphics')
-rw-r--r-- | alacritty_terminal/src/graphics/mod.rs | 2 | ||||
-rw-r--r-- | alacritty_terminal/src/graphics/sixel.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/alacritty_terminal/src/graphics/mod.rs b/alacritty_terminal/src/graphics/mod.rs index 30424c2b..a285228f 100644 --- a/alacritty_terminal/src/graphics/mod.rs +++ b/alacritty_terminal/src/graphics/mod.rs @@ -12,7 +12,7 @@ use serde::{Deserialize, Serialize}; use crate::term::color::Rgb; /// Max allowed dimensions (width, height) for the graphic, in pixels. -pub const MAX_GRAPHIC_DIMENSIONS: (usize, usize) = (4096, 4096); +pub const MAX_GRAPHIC_DIMENSIONS: [usize; 2] = [4096, 4096]; /// Unique identifier for every graphic added to a grid. #[derive(Serialize, Deserialize, Eq, PartialEq, Clone, Debug, Copy, Hash, PartialOrd, Ord)] diff --git a/alacritty_terminal/src/graphics/sixel.rs b/alacritty_terminal/src/graphics/sixel.rs index 221fe7cd..d617e53b 100644 --- a/alacritty_terminal/src/graphics/sixel.rs +++ b/alacritty_terminal/src/graphics/sixel.rs @@ -391,7 +391,7 @@ impl Parser { return Ok(()); } - if width > MAX_GRAPHIC_DIMENSIONS.0 || height > MAX_GRAPHIC_DIMENSIONS.1 { + if width > MAX_GRAPHIC_DIMENSIONS[0] || height > MAX_GRAPHIC_DIMENSIONS[1] { return Err(Error::TooBigImage { width, height }); } |