Mercurial > hg > orthanc-stone
diff Framework/Widgets/CairoWidget.cpp @ 726:4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 May 2019 11:43:25 +0200 |
parents | aaeec7be8fb7 |
children |
line wrap: on
line diff
--- a/Framework/Widgets/CairoWidget.cpp Mon May 20 16:26:34 2019 +0200 +++ b/Framework/Widgets/CairoWidget.cpp Tue May 21 11:43:25 2019 +0200 @@ -24,7 +24,7 @@ #include <Core/Images/ImageProcessing.h> #include <Core/OrthancException.h> -namespace OrthancStone +namespace Deprecated { static bool IsAligned(const Orthanc::ImageAccessor& target) { @@ -51,14 +51,14 @@ if (IsAligned(target)) { - CairoSurface surface(target, false /* no alpha */); - CairoContext context(surface); + OrthancStone::CairoSurface surface(target, false /* no alpha */); + OrthancStone::CairoContext context(surface); ClearBackgroundCairo(context); return RenderCairo(context); } else { - CairoContext context(surface_); + OrthancStone::CairoContext context(surface_); ClearBackgroundCairo(context); if (RenderCairo(context)) @@ -82,8 +82,8 @@ { if (IsAligned(target)) { - CairoSurface surface(target, false /* no alpha */); - CairoContext context(surface); + OrthancStone::CairoSurface surface(target, false /* no alpha */); + OrthancStone::CairoContext context(surface); RenderMouseOverCairo(context, x, y); } else @@ -92,7 +92,7 @@ surface_.GetWriteableAccessor(accessor); Orthanc::ImageProcessing::Copy(accessor, target); - CairoContext context(surface_); + OrthancStone::CairoContext context(surface_); RenderMouseOverCairo(context, x, y); Orthanc::ImageProcessing::Copy(target, accessor);