fixup! feat(core): introduce new drawing library

cepetr/gfx-alpha
cepetr 4 weeks ago
parent 52aeaaecc2
commit 464f146201

@ -760,13 +760,12 @@ fn fill_octant(
let p2_coord = Point::new(p2_start.u - p2.v, -p2_start.v + p2.u);
let p2_frac = if first {
p2_start.frac
} else if join_flag {
255
} else {
if join_flag {
255
} else {
255 - p2.frac
}
255 - p2.frac
};
fill(Some(p1_coord), p1.frac, p2_coord, p2_frac);
first = false;
}

@ -1,5 +1,5 @@
use crate::{
trezorhal::bitblt::{self, BitBltCopy, BitBltFill},
trezorhal::bitblt::{BitBltCopy, BitBltFill},
ui::{
display::Color,
geometry::{Offset, Point, Rect},

@ -8,9 +8,7 @@ use crate::ui::{
geometry::{Offset, Rect},
};
use super::super::{
BasicCanvas, BitmapFormat, BitmapView, DrawingCache, ProgressiveRenderer, Viewport,
};
use super::super::{BasicCanvas, BitmapView, DrawingCache, ProgressiveRenderer, Viewport};
use static_alloc::Bump;

Loading…
Cancel
Save