From 0956eaba597179f9b143314ec1cfd4dcd28a7edc Mon Sep 17 00:00:00 2001 From: meh Date: Tue, 19 May 2015 04:31:19 +0200 Subject: [PATCH] codec/subtitle: change width and height to u32 --- src/codec/subtitle.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/codec/subtitle.rs b/src/codec/subtitle.rs index 4202b2e..f259bf6 100644 --- a/src/codec/subtitle.rs +++ b/src/codec/subtitle.rs @@ -168,15 +168,15 @@ impl<'a> Bitmap<'a> { } } - pub fn width(&self) -> usize { + pub fn width(&self) -> u32 { unsafe { - (*self.ptr).w as usize + (*self.ptr).w as u32 } } - pub fn height(&self) -> usize { + pub fn height(&self) -> u32 { unsafe { - (*self.ptr).h as usize + (*self.ptr).h as u32 } } @@ -188,7 +188,7 @@ impl<'a> Bitmap<'a> { pub fn picture(&self, format: format::Pixel) -> Picture<'a> { unsafe { - Picture::wrap(&mut (*self.ptr).pict, format, (*self.ptr).w as usize, (*self.ptr).h as usize) + Picture::wrap(&mut (*self.ptr).pict, format, (*self.ptr).w as u32, (*self.ptr).h as u32) } } }