comparison OrthancStone/Sources/Scene2D/Internals/OpenGLAdvancedPolylineRenderer.h @ 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 85e117739eca
children 4fb8fdf03314
comparison
equal deleted inserted replaced
1575:e4a52cbbdd70 1576:92fca2b3ba3d
47 unsigned int canvasWidth, 47 unsigned int canvasWidth,
48 unsigned int canvasHeight) ORTHANC_OVERRIDE 48 unsigned int canvasHeight) ORTHANC_OVERRIDE
49 { 49 {
50 if (!context_.IsContextLost()) 50 if (!context_.IsContextLost())
51 { 51 {
52 program_.Apply(*data_, transform, true, true); 52 program_.Apply(*data_, transform, canvasWidth, canvasHeight, true, true);
53 } 53 }
54 } 54 }
55 55
56 virtual void Update(const ISceneLayer& layer) ORTHANC_OVERRIDE 56 virtual void Update(const ISceneLayer& layer) ORTHANC_OVERRIDE
57 { 57 {