Skip to content

Commit

Permalink
Adjust the canvas borders in the demo so that they are not drawn over…
Browse files Browse the repository at this point in the history
… during a canvas restore
  • Loading branch information
not-avail committed Jun 21, 2018
1 parent 2c7e5df commit eb526e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,13 +529,13 @@ fn main() {
app.add_element(
"canvasRegion",
UIElementWrapper {
y: CANVAS_REGION.top as usize,
y: (CANVAS_REGION.top - 2) as usize,
x: CANVAS_REGION.left as usize,
refresh: UIConstraintRefresh::RefreshAndWait,
onclick: None,
inner: UIElement::Region {
height: CANVAS_REGION.height as usize,
width: CANVAS_REGION.width as usize,
height: (CANVAS_REGION.height + 3) as usize,
width: (CANVAS_REGION.width + 1) as usize,
border_px: 2,
border_color: color::BLACK,
},
Expand Down

0 comments on commit eb526e6

Please sign in to comment.