We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74488ff commit da4df56Copy full SHA for da4df56
1 file changed
src/rust_api.rs
@@ -372,13 +372,13 @@ impl Picture {
372
}
373
374
/// Width of the frame.
375
- pub fn width(&self) -> u32 {
376
- self.inner.p.w.try_into().unwrap()
+ pub fn width(&self) -> i32 {
+ self.inner.p.w
377
378
379
/// Height of the frame.
380
- pub fn height(&self) -> u32 {
381
- self.inner.p.h.try_into().unwrap()
+ pub fn height(&self) -> i32 {
+ self.inner.p.h
382
383
384
/// Pixel layout of the frame.
0 commit comments