Skip to content

Update to [email protected] #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mupdf-sys/mupdf
Submodule mupdf updated 479 files
6 changes: 3 additions & 3 deletions src/colorspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ mod test {
)
.unwrap();
assert_eq!(n, 3);
assert!((0.6..0.7).contains(&gray[0]));
assert!((0.6..0.7).contains(&gray[1]));
assert!((0.6..0.7).contains(&gray[2]));
assert!((0.58..0.62).contains(&gray[0]));
assert!((0.58..0.62).contains(&gray[1]));
assert!((0.58..0.62).contains(&gray[2]));
assert_eq!(gray[3], 0.0);
}
}
12 changes: 6 additions & 6 deletions src/display_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,19 @@ mod test {
[Quad {
ul: Point {
x: 56.8,
y: 69.32512
y: 69.32953
},
ur: Point {
x: 115.85405,
y: 69.32512
x: 115.85159,
y: 69.32953
},
ll: Point {
x: 56.8,
y: 87.311844
y: 87.29713
},
lr: Point {
x: 115.85405,
y: 87.311844
x: 115.85159,
y: 87.29713
}
}]
);
Expand Down
14 changes: 7 additions & 7 deletions src/page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,20 +534,20 @@ mod test {
[Quad {
ul: Point {
x: 56.8,
y: 69.32512,
y: 69.32953
},
ur: Point {
x: 115.85405,
y: 69.32512,
x: 115.85159,
y: 69.32953
},
ll: Point {
x: 56.8,
y: 87.311844,
y: 87.29713
},
lr: Point {
x: 115.85405,
y: 87.311844,
},
x: 115.85159,
y: 87.29713
}
}]
);

Expand Down
3 changes: 2 additions & 1 deletion src/stroke_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ impl StrokeState {
pub fn dashes(&self) -> Vec<f32> {
unsafe {
let dash_len = (*self.inner).dash_len as usize;
let dash_ptr = (*self.inner).dash_list.as_ptr();
let mut dash_list = Vec::with_capacity(dash_len);
dash_list.extend_from_slice(&(*self.inner).dash_list[0..dash_len]);
dash_list.extend_from_slice(std::slice::from_raw_parts(dash_ptr, dash_len));
dash_list
}
}
Expand Down
12 changes: 6 additions & 6 deletions src/text_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,19 +278,19 @@ mod test {
[Quad {
ul: Point {
x: 56.8,
y: 69.32512
y: 69.32953
},
ur: Point {
x: 115.85405,
y: 69.32512
x: 115.85159,
y: 69.32953
},
ll: Point {
x: 56.8,
y: 87.311844
y: 87.29713
},
lr: Point {
x: 115.85405,
y: 87.311844
x: 115.85159,
y: 87.29713
}
}]
);
Expand Down
Loading