X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/80214df235164884f49a9fc12d7a34138a21a44c..b42009f666412ebe82e0bba35bac163aa09c22a1:/src/expedia.c diff --git a/src/expedia.c b/src/expedia.c index bc7b6086..d7de9ee7 100644 --- a/src/expedia.c +++ b/src/expedia.c @@ -37,7 +37,7 @@ static gboolean expedia_coord_to_mapcoord ( const VikCoord *src, gdouble xzoom, static void expedia_mapcoord_to_center_coord ( MapCoord *src, VikCoord *dest ); static int expedia_download ( MapCoord *src, const gchar *dest_fn ); -static DownloadOptions expedia_options = { 0 }; +static DownloadOptions expedia_options = { NULL, 2 }; void expedia_init() { VikMapsLayer_MapType map_type = { 5, 0, 0, VIK_VIEWPORT_DRAWMODE_EXPEDIA, expedia_coord_to_mapcoord, expedia_mapcoord_to_center_coord, expedia_download }; @@ -111,7 +111,7 @@ void expedia_snip ( const gchar *file ) cropped = gdk_pixbuf_new_subpixbuf ( old, WIDTH_BUFFER, HEIGHT_BUFFER, width - 2*WIDTH_BUFFER, height - 2*HEIGHT_BUFFER ); - gdk_pixbuf_save ( cropped, file, "png", NULL, NULL, &gx ); + gdk_pixbuf_save ( cropped, file, "png", &gx, NULL ); if ( gx ) { g_warning ( "Couldn't save EXPEDIA image file (right after successful download! Please report and delete image file!): %s", gx->message ); g_error_free ( gx );