summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetalstrolch <stefan.wildemann@metalstrolche.de>2019-08-18 21:20:42 +0200
committermetalstrolch <stefan.wildemann@metalstrolche.de>2019-08-18 21:20:42 +0200
commitf580e9fc33710b4fc501c0fa93f226e0d469a7c9 (patch)
tree04362d33a80cbc8f22c6b5726405db55ce21ed80
parentd5b63f744a84b6da48151720e18d64c2dc379aa1 (diff)
downloadnavit-fix_cursor_layer_size.tar.gz
Fix some typos.fix_cursor_layer_size
-rw-r--r--navit/vehicle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/vehicle.c b/navit/vehicle.c
index 6cb527f9f..f0094e804 100644
--- a/navit/vehicle.c
+++ b/navit/vehicle.c
@@ -327,7 +327,7 @@ void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwr
this_->animate_callback=callback_new_2(callback_cast(vehicle_draw_do), this_, 0);
this_->animate_timer=event_add_timeout(cursor->interval, 1, this_->animate_callback);
}
- /* we changed the curser, so the overlay (if existing) may need a resize */
+ /* we changed the cursor, so the overlay (if existing) may need a resize */
this_->need_resize=1;
this_->cursor=cursor;
@@ -368,7 +368,7 @@ void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt
/* recalculate real size of the required overlay */
navit_float radius;
- /* get the radius of the out cyrcle. Pythagoras greets */
+ /* get the radius of the out circle. Pythagoras greets */
radius = navit_sqrt((this_->cursor->w * this_->cursor->w) + (this_->cursor->h * this_->cursor->h));
/* since we rotate the rectangle around the center to indicate direction, the overlay needs to be at least the
* radius of the out circle big. The +1 compensates the rounding error.