We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28e6f7e commit 5d737d8Copy full SHA for 5d737d8
src/font.rs
@@ -50,7 +50,7 @@ impl Font {
50
51
pub fn weight(&self) -> FontWeight {
52
unsafe {
53
- FontWeight::from_u32((*self.native.get()).GetWeight().0)
+ FontWeight::from_u32((*self.native.get()).GetWeight())
54
}
55
56
src/types.rs
@@ -24,8 +24,8 @@ pub enum FontWeight {
24
25
26
impl FontWeight {
27
- fn t(&self) -> winapi::DWRITE_FONT_WEIGHT {
28
- unsafe { mem::transmute::<u32, winapi::DWRITE_FONT_WEIGHT>(self.to_u32()) }
+ fn t(&self) -> DWRITE_FONT_WEIGHT {
+ unsafe { mem::transmute::<u32, DWRITE_FONT_WEIGHT>(self.to_u32()) }
29
30
pub fn to_u32(&self) -> u32 {
31
match self {
0 commit comments