Mercurial > hg > orthanc-stone
comparison Framework/Viewport/CairoContext.cpp @ 339:5a7915b23138 am-2
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Oct 2018 14:44:12 +0200 |
parents | 5412adf19980 |
children | ef31240a73f6 |
comparison
equal
deleted
inserted
replaced
338:b3b3fa0e3689 | 339:5a7915b23138 |
---|---|
22 #include "CairoContext.h" | 22 #include "CairoContext.h" |
23 | 23 |
24 #include <Core/Logging.h> | 24 #include <Core/Logging.h> |
25 #include <Core/OrthancException.h> | 25 #include <Core/OrthancException.h> |
26 | 26 |
27 | |
27 namespace OrthancStone | 28 namespace OrthancStone |
28 { | 29 { |
29 CairoContext::CairoContext(CairoSurface& surface) | 30 CairoContext::CairoContext(CairoSurface& surface) : |
31 width_(surface.GetWidth()), | |
32 height_(surface.GetHeight()) | |
30 { | 33 { |
31 context_ = cairo_create(surface.GetObject()); | 34 context_ = cairo_create(surface.GetObject()); |
32 if (!context_) | 35 if (!context_) |
33 { | 36 { |
34 LOG(ERROR) << "Cannot create Cairo drawing context"; | 37 LOG(ERROR) << "Cannot create Cairo drawing context"; |