Skip to content

Commit

Permalink
GetIndexes is deprecated from GraphicsMagick 1.3.28
Browse files Browse the repository at this point in the history
Change the MagickLibVersion checks.
  • Loading branch information
ChocolateFrogsNuts committed Jul 19, 2018
1 parent 7815dd9 commit b071954
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/map_OSM.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ static void draw_image(
}

#if defined(HAVE_GRAPHICSMAGICK)
#if (MagickLibVersion < 0x211801)
#if (MagickLibVersion < 0x201702)
index_pack = GetIndexes(image);
#else
index_pack = AccessMutableIndexes(image);
Expand Down Expand Up @@ -738,7 +738,7 @@ static void draw_OSM_image(
}

#if defined(HAVE_GRAPHICSMAGICK)
#if (MagickLibVersion < 0x211801)
#if (MagickLibVersion < 0x201702)
index_pack = GetIndexes(image);
#else
index_pack = AccessMutableIndexes(image);
Expand Down
2 changes: 1 addition & 1 deletion src/map_WMS.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ void draw_WMS_map (Widget w,


#if defined(HAVE_GRAPHICSMAGICK)
#if (MagickLibVersion < 0x211801)
#if (MagickLibVersion < 0x201702)
index_pack = GetIndexes(image);
#else
index_pack = AccessMutableIndexes(image);
Expand Down
2 changes: 1 addition & 1 deletion src/map_tiger.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ void draw_tiger_map (Widget w,


#if defined(HAVE_GRAPHICSMAGICK)
#if (MagickLibVersion < 0x211801)
#if (MagickLibVersion < 0x201702)
index_pack = GetIndexes(image);
#else
index_pack = AccessMutableIndexes(image);
Expand Down

0 comments on commit b071954

Please sign in to comment.