diff Samples/Sdl/Loader.cpp @ 792:4fe4b221a31f

deprecating MessagingToolbox
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 28 May 2019 08:49:49 +0200
parents c83a45f864b2
children f72b49954f62
line wrap: on
line diff
--- a/Samples/Sdl/Loader.cpp	Tue May 28 08:29:24 2019 +0200
+++ b/Samples/Sdl/Loader.cpp	Tue May 28 08:49:49 2019 +0200
@@ -1220,7 +1220,6 @@
     {
       ImageBuffer3D& target = volume_->GetPixelData();
       
-      const Orthanc::PixelFormat format = target.GetFormat();
       const unsigned int bpp = target.GetBytesPerPixel();
       const unsigned int width = target.GetWidth();
       const unsigned int height = target.GetHeight();
@@ -1248,7 +1247,7 @@
 
         for (unsigned int y = 0; y < height; y++)
         {
-          assert(sizeof(T) == Orthanc::GetBytesPerPixel(format));
+          assert(sizeof(T) == Orthanc::GetBytesPerPixel(target.GetFormat()));
 
           T* target = reinterpret_cast<T*>(writer.GetAccessor().GetRow(y));