Skip to content

Commit

Permalink
Fix Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Oct 22, 2024
1 parent a470f2d commit 1f39544
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions swell-ui/src/units.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,14 @@ impl From<raw::RECT> for Rect {
}
}
}

impl From<Rect> for raw::RECT {
fn from(value: Rect) -> Self {
Self {
left: value.left,
top: value.top,
right: value.right(),
bottom: value.bottom(),
}
}
}

0 comments on commit 1f39544

Please sign in to comment.