Mercurial > hg > orthanc-stone
diff Framework/Widgets/LayoutWidget.cpp @ 316:ce48c3b3b0e9
fix for new ImageAccessor API
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Oct 2018 12:45:27 +0200 |
parents | 5412adf19980 |
children | 557c8ff1db5c 88c79f1537de |
line wrap: on
line diff
--- a/Framework/Widgets/LayoutWidget.cpp Mon Oct 01 10:46:26 2018 +0200 +++ b/Framework/Widgets/LayoutWidget.cpp Mon Oct 08 12:45:27 2018 +0200 @@ -57,7 +57,8 @@ virtual void Render(Orthanc::ImageAccessor& surface) { - Orthanc::ImageAccessor accessor = surface.GetRegion(left_, top_, width_, height_); + Orthanc::ImageAccessor accessor; + surface.GetRegion(accessor, left_, top_, width_, height_); tracker_->Render(accessor); } @@ -142,7 +143,8 @@ } else { - Orthanc::ImageAccessor accessor = target.GetRegion(left_, top_, width_, height_); + Orthanc::ImageAccessor accessor; + target.GetRegion(accessor, left_, top_, width_, height_); return widget_->Render(accessor); } } @@ -173,7 +175,8 @@ { if (Contains(x, y)) { - Orthanc::ImageAccessor accessor = target.GetRegion(left_, top_, width_, height_); + Orthanc::ImageAccessor accessor; + target.GetRegion(accessor, left_, top_, width_, height_); widget_->RenderMouseOver(accessor, x - left_, y - top_); }