Skip to content

Commit 95783f5

Browse files
committed
Port to embedded-graphics 0.9
1 parent 57dee21 commit 95783f5

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@ nom = { version = "7.1.1", default-features = false }
3131
paste = "1.0"
3232
criterion = "0.3.5"
3333
clap = { version = "3.2.22", features = ["derive"] }
34-
embedded-graphics-simulator = { version = "0.5.0", default_features = false }
34+
embedded-graphics-simulator = { version = "0.5.0", default-features = false }
35+
36+
[patch.crates-io]
37+
embedded-graphics = { git = "https://github.com/embedded-graphics/embedded-graphics.git" }
38+
embedded-graphics-simulator = { git = "https://github.com/embedded-graphics/simulator.git" }

src/color_map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::{parse_error::ParseError, Bpp, TgaHeader};
22
use embedded_graphics::{
3-
iterator::raw::RawDataSlice, pixelcolor::raw::LittleEndian, prelude::PixelColor,
3+
iterator::raw::RawDataSlice, pixelcolor::raw::LittleEndianMsb0, prelude::PixelColor,
44
};
55
use nom::bytes::complete::take;
66

@@ -79,7 +79,7 @@ impl<'a> ColorMap<'a> {
7979
pub(crate) fn get<C>(&self, index: usize) -> Option<C>
8080
where
8181
C: PixelColor + From<C::Raw>,
82-
RawDataSlice<'a, C::Raw, LittleEndian>: IntoIterator<Item = C::Raw>,
82+
RawDataSlice<'a, C::Raw, LittleEndianMsb0>: IntoIterator<Item = C::Raw>,
8383
{
8484
RawDataSlice::new(self.data)
8585
.into_iter()

0 commit comments

Comments
 (0)