Skip to content

Commit da4df56

Browse files
committed
Expose the underlying reality of signed fields in the Rust API
1 parent 74488ff commit da4df56

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/rust_api.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,13 +372,13 @@ impl Picture {
372372
}
373373

374374
/// Width of the frame.
375-
pub fn width(&self) -> u32 {
376-
self.inner.p.w.try_into().unwrap()
375+
pub fn width(&self) -> i32 {
376+
self.inner.p.w
377377
}
378378

379379
/// Height of the frame.
380-
pub fn height(&self) -> u32 {
381-
self.inner.p.h.try_into().unwrap()
380+
pub fn height(&self) -> i32 {
381+
self.inner.p.h
382382
}
383383

384384
/// Pixel layout of the frame.

0 commit comments

Comments
 (0)