Mercurial > hg > orthanc-stone
diff Framework/Widgets/WidgetBase.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/Widgets/WidgetBase.cpp Wed Apr 17 16:16:47 2019 +0200 +++ b/Framework/Widgets/WidgetBase.cpp Wed Apr 17 17:57:50 2019 +0200 @@ -86,7 +86,7 @@ void WidgetBase::ClearBackgroundCairo(Orthanc::ImageAccessor& target) const { - CairoSurface surface(target); + CairoSurface surface(target, false /* no alpha */); CairoContext context(surface); ClearBackgroundCairo(context); }