Skip to content

Commit 5d737d8

Browse files
committed
Fix build
1 parent 28e6f7e commit 5d737d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/font.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl Font {
5050

5151
pub fn weight(&self) -> FontWeight {
5252
unsafe {
53-
FontWeight::from_u32((*self.native.get()).GetWeight().0)
53+
FontWeight::from_u32((*self.native.get()).GetWeight())
5454
}
5555
}
5656

src/types.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ pub enum FontWeight {
2424
}
2525

2626
impl FontWeight {
27-
fn t(&self) -> winapi::DWRITE_FONT_WEIGHT {
28-
unsafe { mem::transmute::<u32, winapi::DWRITE_FONT_WEIGHT>(self.to_u32()) }
27+
fn t(&self) -> DWRITE_FONT_WEIGHT {
28+
unsafe { mem::transmute::<u32, DWRITE_FONT_WEIGHT>(self.to_u32()) }
2929
}
3030
pub fn to_u32(&self) -> u32 {
3131
match self {

0 commit comments

Comments
 (0)