comparison Framework/Scene2D/Internals/CairoInfoPanelRenderer.cpp @ 889:6e79e8c9021c am-dev

integration mainline->am-dev
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jul 2019 12:05:02 +0200
parents 80829436ce0c 6e888cf6a48b
children 2d8ab34c8c91
comparison
equal deleted inserted replaced
887:6176917ef890 889:6e79e8c9021c
35 anchor_ = l.GetAnchor(); 35 anchor_ = l.GetAnchor();
36 isLinearInterpolation_ = l.IsLinearInterpolation(); 36 isLinearInterpolation_ = l.IsLinearInterpolation();
37 } 37 }
38 38
39 39
40 void CairoInfoPanelRenderer::Render(const AffineTransform2D& transform) 40 void CairoInfoPanelRenderer::Render(const AffineTransform2D& transform,
41 unsigned int canvasWidth,
42 unsigned int canvasHeight)
41 { 43 {
42 int dx, dy; 44 int dx, dy;
43 InfoPanelSceneLayer::ComputeAnchorLocation( 45 InfoPanelSceneLayer::ComputeAnchorLocation(
44 dx, dy, anchor_, texture_.GetWidth(), texture_.GetHeight(), 46 dx, dy, anchor_, texture_.GetWidth(), texture_.GetHeight(),
45 target_.GetWidth(), target_.GetHeight()); 47 canvasWidth, canvasHeight);
46 48
47 cairo_t* cr = target_.GetCairoContext(); 49 cairo_t* cr = target_.GetCairoContext();
48 50
49 cairo_save(cr); 51 cairo_save(cr);
50 52