]> granicus.if.org Git - imagemagick/commitdiff
Fixed creating screenshot.
authordirk <dirk@git.imagemagick.org>
Sun, 12 Oct 2014 10:13:08 +0000 (10:13 +0000)
committerdirk <dirk@git.imagemagick.org>
Sun, 12 Oct 2014 10:13:08 +0000 (10:13 +0000)
coders/screenshot.c

index 3d8b9f9d5085dad46712f4ad4383496a250006ab..a59e36994a9885127e5c6f216332f26f10522736 100644 (file)
@@ -212,7 +212,7 @@ static Image *ReadSCREENSHOTImage(const ImageInfo *image_info,
           SetPixelBlue(image,ScaleCharToQuantum(p->rgbtBlue),q);
           SetPixelAlpha(image,OpaqueAlpha,q);
           p++;
-          q++;
+          q+=GetPixelChannels(image);
         }
         if (SyncAuthenticPixels(screen,exception) == MagickFalse)
           break;