comparison 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
comparison
equal deleted inserted replaced
559:9e61b0ac12f1 560:aaeec7be8fb7
84 } 84 }
85 85
86 86
87 void WidgetBase::ClearBackgroundCairo(Orthanc::ImageAccessor& target) const 87 void WidgetBase::ClearBackgroundCairo(Orthanc::ImageAccessor& target) const
88 { 88 {
89 CairoSurface surface(target); 89 CairoSurface surface(target, false /* no alpha */);
90 CairoContext context(surface); 90 CairoContext context(surface);
91 ClearBackgroundCairo(context); 91 ClearBackgroundCairo(context);
92 } 92 }
93 93
94 94