Mercurial > hg > orthanc
changeset 2650:5f2dd8b6ee2f jobs
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 01 Jun 2018 19:03:28 +0200 |
parents | 193ef9c1b731 |
children | 1da5a052c777 |
files | Core/Images/ImageProcessing.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Core/Images/ImageProcessing.cpp Fri Jun 01 10:51:06 2018 +0200 +++ b/Core/Images/ImageProcessing.cpp Fri Jun 01 19:03:28 2018 +0200 @@ -550,7 +550,8 @@ return; } - if (target.GetFormat() == PixelFormat_RGBA32 && + if ((target.GetFormat() == PixelFormat_RGBA32 || + target.GetFormat() == PixelFormat_BGRA32) && source.GetFormat() == PixelFormat_Grayscale8) { for (unsigned int y = 0; y < source.GetHeight(); y++)