summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan FitiƩ <jfitie@gmail.com>2017-07-27 11:53:49 +0200
committerJohan FitiƩ <jfitie@gmail.com>2017-07-27 11:53:49 +0200
commitae2832a880033570bba91dbf6f87cea484353314 (patch)
tree38ef7710dac12db1cc0ef65d27c1f5c827d882db
parentf7e952cab99f6f03b7ae2833e2a76516ae901a9b (diff)
downloadnavit-ae2832a880033570bba91dbf6f87cea484353314.tar.gz
Round integer
-rw-r--r--navit/navit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/navit.c b/navit/navit.c
index 2802e78f7..5dc2f08e7 100644
--- a/navit/navit.c
+++ b/navit/navit.c
@@ -346,7 +346,7 @@ navit_handle_resize(struct navit *this_, int w, int h)
this_->w=w;
this_->h=h;
if (this_->pitch != 0) {
- this_->pitch=20*sqrt(240*320)/sqrt(w*h); // Pitch corrected for window resolution
+ this_->pitch=round(20*sqrt(240*320)/sqrt(w*h)); // Pitch corrected for window resolution
}
sel.u.p_rect.rl.x=w;
sel.u.p_rect.rl.y=h;