comparison Framework/Scene2D/Internals/CairoTextRenderer.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 61ba4b504e9a
children 2d8ab34c8c91
comparison
equal deleted inserted replaced
871:4bc8d9609447 888:6e888cf6a48b
73 cairo_surface_mark_dirty(text_.GetObject()); 73 cairo_surface_mark_dirty(text_.GetObject());
74 } 74 }
75 } 75 }
76 76
77 77
78 void CairoTextRenderer::Render(const AffineTransform2D& transform) 78 void CairoTextRenderer::Render(const AffineTransform2D& transform,
79 unsigned int canvasWidth,
80 unsigned int canvasHeight)
79 { 81 {
80 if (text_.GetWidth() != 0 && 82 if (text_.GetWidth() != 0 &&
81 text_.GetHeight() != 0) 83 text_.GetHeight() != 0)
82 { 84 {
83 const TextSceneLayer& layer = GetLayer<TextSceneLayer>(); 85 const TextSceneLayer& layer = GetLayer<TextSceneLayer>();