Mercurial > hg > orthanc-stone
diff Framework/Scene2D/Internals/CairoInfoPanelRenderer.cpp @ 888:6e888cf6a48b
renderers now have access to canvas width/height
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Jul 2019 11:58:38 +0200 |
parents | 9e51fb773bbd |
children | 6e79e8c9021c |
line wrap: on
line diff
--- a/Framework/Scene2D/Internals/CairoInfoPanelRenderer.cpp Tue Jun 25 18:17:33 2019 +0200 +++ b/Framework/Scene2D/Internals/CairoInfoPanelRenderer.cpp Wed Jul 10 11:58:38 2019 +0200 @@ -37,12 +37,14 @@ } - void CairoInfoPanelRenderer::Render(const AffineTransform2D& transform) + void CairoInfoPanelRenderer::Render(const AffineTransform2D& transform, + unsigned int canvasWidth, + unsigned int canvasHeight) { int dx, dy; InfoPanelSceneLayer::ComputeAnchorLocation( dx, dy, anchor_, texture_.GetWidth(), texture_.GetHeight(), - target_.GetCairoWidth(), target_.GetCairoHeight()); + canvasWidth, canvasHeight); cairo_t* cr = target_.GetCairoContext();