diff 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
line wrap: on
line diff
--- a/Framework/Viewport/CairoContext.cpp	Fri Oct 19 12:50:38 2018 +0200
+++ b/Framework/Viewport/CairoContext.cpp	Fri Oct 19 14:44:12 2018 +0200
@@ -24,9 +24,12 @@
 #include <Core/Logging.h>
 #include <Core/OrthancException.h>
 
+
 namespace OrthancStone
 {
-  CairoContext::CairoContext(CairoSurface& surface)
+  CairoContext::CairoContext(CairoSurface& surface) :
+    width_(surface.GetWidth()),
+    height_(surface.GetHeight())
   {
     context_ = cairo_create(surface.GetObject());
     if (!context_)