this_->speed=speed;
if (!this_->gra) {
struct color c;
- this_->gra=graphics_overlay_new(gra, &this_->cursor_pnt, this_->w, this_->h, 65535);
+ this_->gra=graphics_overlay_new(gra, &this_->cursor_pnt, this_->w, this_->h, 65535, 0);
if (this_->gra) {
this_->bg=graphics_gc_new(this_->gra);
c.r=0; c.g=0; c.b=0; c.a=0;
* @returns <>
* @author Martin Schaller (04/2008)
*/
-struct graphics * graphics_overlay_new(struct graphics *parent, struct point *p, int w, int h, int alpha)
+struct graphics * graphics_overlay_new(struct graphics *parent, struct point *p, int w, int h, int alpha, int wraparound)
{
struct graphics *this_;
if (!parent->meth.overlay_new)
return NULL;
this_=g_new0(struct graphics, 1);
- this_->priv=parent->meth.overlay_new(parent->priv, &this_->meth, p, w, h, alpha);
+ this_->priv=parent->meth.overlay_new(parent->priv, &this_->meth, p, w, h, alpha, wraparound);
if (!this_->priv) {
g_free(this_);
this_=NULL;
struct graphics_font_priv *(*font_new)(struct graphics_priv *gr, struct graphics_font_methods *meth, char *font, int size, int flags);
struct graphics_gc_priv *(*gc_new)(struct graphics_priv *gr, struct graphics_gc_methods *meth);
void (*background_gc)(struct graphics_priv *gr, struct graphics_gc_priv *gc);
- struct graphics_priv *(*overlay_new)(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int alpha);
+ struct graphics_priv *(*overlay_new)(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int alpha, int wraparound);
struct graphics_image_priv *(*image_new)(struct graphics_priv *gr, struct graphics_image_methods *meth, char *path, int *w, int *h, struct point *hot, int rotation);
void *(*get_data)(struct graphics_priv *gr, char *type);
void (*image_free)(struct graphics_priv *gr, struct graphics_image_priv *priv);
struct itemgra;
struct graphics *graphics_new(struct attr *parent, struct attr **attrs);
int graphics_get_attr(struct graphics *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
-struct graphics *graphics_overlay_new(struct graphics *parent, struct point *p, int w, int h, int alpha);
+struct graphics *graphics_overlay_new(struct graphics *parent, struct point *p, int w, int h, int alpha, int wraparound);
void graphics_init(struct graphics *this_);
void *graphics_get_data(struct graphics *this_, char *type);
void graphics_add_callback(struct graphics *this_, struct callback *cb);
}
static struct graphics_priv *
-overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int alpha)
+overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int alpha, int wraparound)
{
struct graphics_priv *this=graphics_gtk_drawing_area_new_helper(meth);
this->drawable=gdk_pixmap_new(gr->widget->window, w, h, -1);
//# Comment:
//# Authors: Martin Schaller (04/2008)
//##############################################################################################################
-static struct graphics_priv * overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h,int alpha);
+static struct graphics_priv * overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h,int alpha, int wraparound);
static int argc=1;
static char *argv[]={(char *)"navit",NULL};
//# Comment:
//# Authors: Martin Schaller (04/2008)
//##############################################################################################################
-static struct graphics_priv * overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h,int alpha)
+static struct graphics_priv * overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h,int alpha,int wraparound)
{
*meth=graphics_methods;
return NULL;
struct graphics *navit_gr;
struct color c;
navit_gr=navit_get_graphics(nav);
- this->gr=graphics_overlay_new(navit_gr, &this->p, this->w, this->h, 65535);
+ this->gr=graphics_overlay_new(navit_gr, &this->p, this->w, this->h, 65535, 1);
this->bg=graphics_gc_new(this->gr);
c.r=0; c.g=0; c.b=0; c.a=32767;
struct color c;
char *flag=g_strjoin(NULL,getenv("NAVIT_SHAREDIR"), "/xpm/flag_wh_bk.xpm", NULL);
navit_gr=navit_get_graphics(nav);
- this->gr=graphics_overlay_new(navit_gr, &this->p, this->w, this->h, 65535);
+ this->gr=graphics_overlay_new(navit_gr, &this->p, this->w, this->h, 65535, 1);
this->bg=graphics_gc_new(this->gr);
c.r=0; c.g=0; c.b=0; c.a=32767;
struct graphics *navit_gr;
struct color c;
navit_gr=navit_get_graphics(nav);
- this->gr=graphics_overlay_new(navit_gr, &this->p, this->w, this->h, 65535);
+ this->gr=graphics_overlay_new(navit_gr, &this->p, this->w, this->h, 65535, 1);
this->bg=graphics_gc_new(this->gr);
c.r=0; c.g=0; c.b=0; c.a=32767;
struct color c;
navit_gr=navit_get_graphics(nav);
this->active=-1;
- this->gr=graphics_overlay_new(navit_gr, &this->p, this->w, this->h, 65535);
+ this->gr=graphics_overlay_new(navit_gr, &this->p, this->w, this->h, 65535, 1);
this->bg=graphics_gc_new(this->gr);
c.r=0; c.g=0; c.b=0; c.a=32767;