}
if (this_->moved) {
struct point p;
-#if 0
transform_get_size(this_->trans, &p.x, &p.y);
-#endif
p.x/=2;
p.y/=2;
p.x-=this_->last.x-this_->pressed.x;
static void
navit_set_center_cursor(struct navit *this_, struct coord *cursor, int dir, int xpercent, int ypercent)
{
-#if 0
struct coord *c=transform_center(this_->trans);
int width, height;
struct point p;
*c=cnew;
if (this_->ready)
navit_draw(this_);
-#endif
-
}
}
#endif
-#if 0
void
transform_get_size(struct transformation *t, int *width, int *height)
{
- *width=t->width;
- *height=t->height;
+ struct coord_rect *r=&t->screen_sel->u.p_rect;
+ *width=r->rl.x-r->lu.y;
+ *height=r->rl.y-r->lu.y;
}
-#endif
void
transform_setup(struct transformation *t, struct pcoord *c, int scale, int angle)
struct coord;
struct coord_geo;
struct map_selection;
+struct pcoord;
struct point;
struct transformation;
struct transformation *transform_new(void);
void transform_reverse(struct transformation *t, struct point *p, struct coord *c);
enum projection transform_get_projection(struct transformation *this_);
void transform_set_projection(struct transformation *this_, enum projection pro);
+struct map_selection *transform_get_selection(struct transformation *this_, enum projection pro, int order);
struct coord *transform_center(struct transformation *this_);
void transform_set_angle(struct transformation *t, int angle);
int transform_get_angle(struct transformation *this_, int angle);
void transform_set_screen_selection(struct transformation *t, struct map_selection *sel);
+void transform_get_size(struct transformation *t, int *width, int *height);
+void transform_setup(struct transformation *t, struct pcoord *c, int scale, int angle);
void transform_setup_source_rect(struct transformation *t);
long transform_get_scale(struct transformation *t);
void transform_set_scale(struct transformation *t, long scale);
int transform_distance_line_sq(struct coord *l0, struct coord *l1, struct coord *ref, struct coord *lpnt);
int transform_distance_polyline_sq(struct coord *c, int count, struct coord *ref, struct coord *lpnt, int *pos);
void transform_print_deg(double deg);
-int transform_contains_polygon(struct transformation *t, struct coord *c, int count);
-int transform_contains_polyline(struct transformation *t, struct coord *c, int count);
-int transform_contains_point(struct transformation *t, struct coord *c);
-int is_too_small(struct transformation *t, struct coord *c, int limit);
int transform_get_angle_delta(struct coord *c1, struct coord *c2, int dir);
int transform_within_border(struct transformation *this_, struct point *p, int border);
/* end of prototypes */