aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/graphics/sixel.rs
diff options
context:
space:
mode:
authorAyose <ayosec@gmail.com>2021-05-31 20:53:23 +0100
committerbetaboon <betaboon@0x80.ninja>2021-08-17 15:49:26 +0200
commitc5b7304e93d94c0dee4b07f2741b07b6a9cef5e1 (patch)
tree91179aff73fe6691e519c46280bcdd60e8a98758 /alacritty_terminal/src/graphics/sixel.rs
parentc20820de2978d92603d029da13c56ddfc79b019f (diff)
downloadr-alacritty-c5b7304e93d94c0dee4b07f2741b07b6a9cef5e1.tar.gz
r-alacritty-c5b7304e93d94c0dee4b07f2741b07b6a9cef5e1.tar.bz2
r-alacritty-c5b7304e93d94c0dee4b07f2741b07b6a9cef5e1.zip
Define MAX_GRAPHIC_DIMENSIONS as a 2-elements array.
Diffstat (limited to 'alacritty_terminal/src/graphics/sixel.rs')
-rw-r--r--alacritty_terminal/src/graphics/sixel.rs2
1 files changed, 1 insertions, 1 deletions
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 });
}