summaryrefslogtreecommitdiff
path: root/navit/vehicle.c
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2015-01-25 13:36:03 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2015-01-25 13:36:03 +0000
commit86b78c384f5a19d8bed7a319e44c3dc518b094f2 (patch)
tree78a38878338e5b376356ce127c50066d4fb3ff79 /navit/vehicle.c
parent76efbd74b76062a5cffba5e7af87264ac7bf2ea2 (diff)
downloadnavit-86b78c384f5a19d8bed7a319e44c3dc518b094f2.tar.gz
Fix:core:Remove draw_mode_end_lazy. Only used by QPainter and OpenGL graphics, where it does not appear to do anything useful.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@6010 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicle.c')
-rw-r--r--navit/vehicle.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/navit/vehicle.c b/navit/vehicle.c
index c8ad5a84e..f0ca8cd81 100644
--- a/navit/vehicle.c
+++ b/navit/vehicle.c
@@ -78,7 +78,7 @@ struct vehicle {
struct object_func vehicle_func;
static void vehicle_set_default_name(struct vehicle *this);
-static void vehicle_draw_do(struct vehicle *this_, int lazy);
+static void vehicle_draw_do(struct vehicle *this_);
static void vehicle_log_nmea(struct vehicle *this_, struct log *log);
static void vehicle_log_gpx(struct vehicle *this_, struct log *log);
static void vehicle_log_textfile(struct vehicle *this_, struct log *log);
@@ -364,16 +364,15 @@ vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite)
* @param this_ The vehicle
* @param gra The graphics
* @param pnt Screen coordinates of the vehicle.
- * @param lazy use lazy draw mode.
* @param angle The angle relative to the map.
* @param speed The speed of the vehicle.
*/
void
-vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int lazy, int angle, int speed)
+vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int angle, int speed)
{
if (angle < 0)
angle+=360;
- dbg(lvl_debug,"enter this=%p gra=%p pnt=%p lazy=%d dir=%d speed=%d\n", this_, gra, pnt, lazy, angle, speed);
+ dbg(lvl_debug,"enter this=%p gra=%p pnt=%p dir=%d speed=%d\n", this_, gra, pnt, angle, speed);
dbg(lvl_debug,"point %d,%d\n", pnt->x, pnt->y);
this_->cursor_pnt=*pnt;
this_->angle=angle;
@@ -393,7 +392,7 @@ vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int
graphics_background_gc(this_->gra, this_->bg);
}
}
- vehicle_draw_do(this_, lazy);
+ vehicle_draw_do(this_);
}
int
@@ -419,7 +418,7 @@ static void vehicle_set_default_name(struct vehicle *this_)
static void
-vehicle_draw_do(struct vehicle *this_, int lazy)
+vehicle_draw_do(struct vehicle *this_)
{
struct point p;
struct cursor *cursor=this_->cursor;
@@ -460,7 +459,7 @@ vehicle_draw_do(struct vehicle *this_, int lazy)
++attr;
}
graphics_draw_drag(this_->gra, &this_->cursor_pnt);
- graphics_draw_mode(this_->gra, lazy ? draw_mode_end_lazy : draw_mode_end);
+ graphics_draw_mode(this_->gra, draw_mode_end);
if (this_->animate_callback) {
++this_->sequence;
if (cursor->sequence_range && cursor->sequence_range->max < this_->sequence)