comparison Applications/Sdl/SdlCairoSurface.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 f753a7e15a73
children 557c8ff1db5c
comparison
equal deleted inserted replaced
310:348e00b837b9 316:ce48c3b3b0e9
79 if (cairoSurface_.get() == NULL) 79 if (cairoSurface_.get() == NULL)
80 { 80 {
81 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); 81 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls);
82 } 82 }
83 83
84 Orthanc::ImageAccessor target = cairoSurface_->GetAccessor(); 84 Orthanc::ImageAccessor target;
85 cairoSurface_->GetWriteableAccessor(target);
85 86
86 if (viewport.Render(target)) 87 if (viewport.Render(target))
87 { 88 {
88 window_.Render(sdlSurface_); 89 window_.Render(sdlSurface_);
89 } 90 }