comparison Framework/Scene2D/Internals/CairoFloatTextureRenderer.cpp @ 771:ed783cbc92d7

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 24 May 2019 11:04:41 +0200
parents e6850c866469
children b8dfd966b5f4
comparison
equal deleted inserted replaced
770:e6850c866469 771:ed783cbc92d7
36 isLinearInterpolation_ = l.IsLinearInterpolation(); 36 isLinearInterpolation_ = l.IsLinearInterpolation();
37 37
38 float windowCenter, windowWidth; 38 float windowCenter, windowWidth;
39 l.GetWindowing(windowCenter, windowWidth); 39 l.GetWindowing(windowCenter, windowWidth);
40 40
41 const float a = windowCenter - windowWidth; 41 const float a = windowCenter - windowWidth / 2.0f;
42 const float slope = 256.0f / windowWidth; 42 const float slope = 256.0f / windowWidth;
43 43
44 const Orthanc::ImageAccessor& source = l.GetTexture(); 44 const Orthanc::ImageAccessor& source = l.GetTexture();
45 const unsigned int width = source.GetWidth(); 45 const unsigned int width = source.GetWidth();
46 const unsigned int height = source.GetHeight(); 46 const unsigned int height = source.GetHeight();