Skip to content

Commit

Permalink
Fix clippy errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
xStrom committed Jun 18, 2020
1 parent 52abd2b commit 5dc8426
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion druid-shell/src/platform/gtk/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ impl WindowBuilder {
if let Ok(mut handler_borrow) = state.handler.try_borrow_mut() {
// For some reason piet needs a mutable context, so give it one I guess.
let mut context = context.clone();
context.scale(scale.scale_x(), scale.scale_y());
context.scale(scale.x(), scale.y());
let (x0, y0, x1, y1) = context.clip_extents();
let invalid_rect = Rect::new(x0, y0, x1, y1);

Expand Down
4 changes: 2 additions & 2 deletions druid-shell/src/platform/web/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl WindowState {
let size_px = area.size_px();
self.canvas.set_width(size_px.width as u32);
self.canvas.set_height(size_px.height as u32);
let _ = self.context.scale(scale.scale_x(), scale.scale_y());
let _ = self.context.scale(scale.x(), scale.y());
self.scale.set(scale);
self.area.set(area);
(scale, area)
Expand Down Expand Up @@ -383,7 +383,7 @@ impl WindowBuilder {
let size_px = area.size_px();
canvas.set_width(size_px.width as u32);
canvas.set_height(size_px.height as u32);
let _ = context.scale(scale.scale_x(), scale.scale_y());
let _ = context.scale(scale.x(), scale.y());
let size_dp = area.size_dp();

set_cursor(&canvas, &self.cursor);
Expand Down

0 comments on commit 5dc8426

Please sign in to comment.