diff Framework/Viewport/CairoSurface.cpp @ 369:557c8ff1db5c am-2

integration mainline->am-2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 05 Nov 2018 10:03:14 +0100
parents 3a4ca166fafa ce48c3b3b0e9
children b70e9be013e4
line wrap: on
line diff
--- a/Framework/Viewport/CairoSurface.cpp	Thu Nov 01 12:09:11 2018 +0100
+++ b/Framework/Viewport/CairoSurface.cpp	Mon Nov 05 10:03:14 2018 +0100
@@ -107,20 +107,20 @@
   {
     Orthanc::ImageAccessor source, target;
 
-    other.GetConstAccessor(source);
-    GetAccessor(target);
+    other.GetReadOnlyAccessor(source);
+    GetWriteableAccessor(target);
 
     Orthanc::ImageProcessing::Copy(target, source);
   }
 
 
-  void CairoSurface::GetConstAccessor(Orthanc::ImageAccessor& target) const
+  void CairoSurface::GetReadOnlyAccessor(Orthanc::ImageAccessor& target) const
   {
     target.AssignReadOnly(Orthanc::PixelFormat_BGRA32, width_, height_, pitch_, buffer_);
   }
-
+  
 
-  void CairoSurface::GetAccessor(Orthanc::ImageAccessor& target)
+  void CairoSurface::GetWriteableAccessor(Orthanc::ImageAccessor& target)
   {
     target.AssignWritable(Orthanc::PixelFormat_BGRA32, width_, height_, pitch_, buffer_);
   }