Mercurial > hg > orthanc-stone
diff Framework/Scene2D/Internals/CairoFloatTextureRenderer.cpp @ 770:e6850c866469
fix windowing
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 24 May 2019 11:02:20 +0200 |
parents | 55411e7da2f7 |
children | ed783cbc92d7 |
line wrap: on
line diff
--- a/Framework/Scene2D/Internals/CairoFloatTextureRenderer.cpp Thu May 23 20:37:19 2019 +0200 +++ b/Framework/Scene2D/Internals/CairoFloatTextureRenderer.cpp Fri May 24 11:02:20 2019 +0200 @@ -39,7 +39,7 @@ l.GetWindowing(windowCenter, windowWidth); const float a = windowCenter - windowWidth; - const float slope = 256.0f / (2.0f * windowWidth); + const float slope = 256.0f / windowWidth; const Orthanc::ImageAccessor& source = l.GetTexture(); const unsigned int width = source.GetWidth();