Skip to content

Commit

Permalink
fix: remove ods call
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Feb 23, 2025
1 parent a2f4717 commit e66c361
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ fn main() -> iced::Result {
let bytes = fs::read(file).unwrap();
let bytes_len = bytes.len();

// let segments_raw = segment::segment_on(&bytes, &[0x50, 0x47]);
// let segs_len = segments_raw.len();

let mut segments: Vec<Segment> = vec![];
let mut display_sets: Vec<DisplaySet> = vec![];

Expand Down Expand Up @@ -164,7 +161,7 @@ fn main() -> iced::Result {
0x16 => SegmentType::PCS,
0x17 => SegmentType::WDS,
0x80 => SegmentType::END,
byte => panic!("invalid segment type {:?}", byte),
byte => panic!("invalid segment type {byte:?}"),
};

let segment_size = c.read_u16::<BigEndian>().unwrap();
Expand Down
9 changes: 3 additions & 6 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ pub enum Message {
#[derive(Debug)]
pub struct SupViewer {
state: State,

// next_frame_button: button::State,
// prev_frame_button: button::State,
current_frame: DisplaySetView,
}

Expand All @@ -52,9 +49,9 @@ impl SupViewer {
let current_frame =
DisplaySetView::new(self.state.frames[self.state.current_frame].clone());

let ods = self.current_frame.ds().ods();
let w = ods.width;
let h = ods.height;
// let ods = self.current_frame.ds().ods();
// let w = ods.width;
// let h = ods.height;

let canvas = Canvas::new(current_frame);

Expand Down

0 comments on commit e66c361

Please sign in to comment.