Mercurial > hg > orthanc-stone
diff Framework/Widgets/CairoWidget.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/CairoWidget.cpp Wed Apr 17 16:16:47 2019 +0200 +++ b/Framework/Widgets/CairoWidget.cpp Wed Apr 17 17:57:50 2019 +0200 @@ -40,7 +40,7 @@ void CairoWidget::SetSize(unsigned int width, unsigned int height) { - surface_.SetSize(width, height); + surface_.SetSize(width, height, false /* no alpha */); } @@ -51,7 +51,7 @@ if (IsAligned(target)) { - CairoSurface surface(target); + CairoSurface surface(target, false /* no alpha */); CairoContext context(surface); ClearBackgroundCairo(context); return RenderCairo(context); @@ -82,7 +82,7 @@ { if (IsAligned(target)) { - CairoSurface surface(target); + CairoSurface surface(target, false /* no alpha */); CairoContext context(surface); RenderMouseOverCairo(context, x, y); }