comparison OrthancStone/Sources/Scene2D/Internals/OpenGLFloatTextureRenderer.cpp @ 1576:92fca2b3ba3d

sanitizing the handling of canvas size
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Sep 2020 16:40:30 +0200
parents 244ad1e4e76a
children 4fb8fdf03314
comparison
equal deleted inserted replaced
1575:e4a52cbbdd70 1576:92fca2b3ba3d
65 unsigned int canvasWidth, 65 unsigned int canvasWidth,
66 unsigned int canvasHeight) 66 unsigned int canvasHeight)
67 { 67 {
68 if (!context_.IsContextLost() && texture_.get() != NULL) 68 if (!context_.IsContextLost() && texture_.get() != NULL)
69 { 69 {
70 program_.Apply(*texture_, AffineTransform2D::Combine(transform, layerTransform_), 70 program_.Apply(*texture_, AffineTransform2D::Combine(transform, layerTransform_),
71 windowCenter_, windowWidth_, invert_); 71 canvasWidth, canvasHeight, windowCenter_, windowWidth_, invert_);
72 } 72 }
73 } 73 }
74 74
75 75
76 void OpenGLFloatTextureRenderer::Update(const ISceneLayer& layer) 76 void OpenGLFloatTextureRenderer::Update(const ISceneLayer& layer)