Skip to content

Commit

Permalink
Ceil values to queue_draw_area in grid.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
smolck committed Dec 10, 2019
1 parent 337309c commit b66442a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/grid/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,14 @@ impl Grid {
// Clear old cursor position.
let (x, y, w, h) = ctx.get_cursor_rect();
ctx.queue_draw_area
.push((x as i32, y as i32, w as i32, h as i32));
.push((x.ceil() as i32, y.ceil() as i32, w.ceil() as i32, h.ceil() as i32));
ctx.cursor.0 = row;
ctx.cursor.1 = col;

// Mark the new cursor position to be drawn.
let (x, y, w, h) = ctx.get_cursor_rect();
ctx.queue_draw_area
.push((x as i32, y as i32, w as i32, h as i32));
.push((x.ceil() as i32, y.ceil() as i32, w.ceil() as i32, h.ceil() as i32));

if let Some(ref im_context) = self.im_context {
let rect = gdk::Rectangle {
Expand Down

0 comments on commit b66442a

Please sign in to comment.