Mercurial > hg > orthanc-stone
diff Framework/Layers/ColorFrameRenderer.cpp @ 560:aaeec7be8fb7
add support for alpha channel in CairoSurface
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 Apr 2019 17:57:50 +0200 |
parents | b70e9be013e4 |
children | 4f2416d519b4 |
line wrap: on
line diff
--- a/Framework/Layers/ColorFrameRenderer.cpp Wed Apr 17 16:16:47 2019 +0200 +++ b/Framework/Layers/ColorFrameRenderer.cpp Wed Apr 17 17:57:50 2019 +0200 @@ -29,7 +29,7 @@ { CairoSurface* ColorFrameRenderer::GenerateDisplay(const RenderStyle& style) { - std::auto_ptr<CairoSurface> display(new CairoSurface(frame_->GetWidth(), frame_->GetHeight())); + std::auto_ptr<CairoSurface> display(new CairoSurface(frame_->GetWidth(), frame_->GetHeight(), false /* no alpha */)); Orthanc::ImageAccessor target; display->GetWriteableAccessor(target);