]> git.street.me.uk Git - andy/viking.git/blobdiff - src/expedia.c
fix plotting of DEM data on elevation graph
[andy/viking.git] / src / expedia.c
index bc7b60864f9fb1596be853a9ee5c1dab33747a6b..d7de9ee7c32ca4fe85b52227d23790e5a77e7cd3 100644 (file)
@@ -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 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 };
 
 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 );
 
   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 );
   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 );