Mercurial > hg > orthanc-stone
comparison Applications/Sdl/SdlCairoSurface.cpp @ 324:29a79b8c3d39 am-2
fix SDL build
author | am@osimis.io |
---|---|
date | Tue, 16 Oct 2018 08:59:23 +0200 |
parents | f753a7e15a73 |
children | 557c8ff1db5c |
comparison
equal
deleted
inserted
replaced
323:dbfe2e9e5020 | 324:29a79b8c3d39 |
---|---|
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_->GetAccessor(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 } |