Mercurial > hg > orthanc-stone
diff Framework/Scene2D/Internals/CairoFloatTextureRenderer.cpp @ 772:cfb4d39065a4 am-dev
fix windowing + save windowing
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Fri, 24 May 2019 11:05:06 +0200 |
parents | 9e51fb773bbd |
children | 238693c3bc51 |
line wrap: on
line diff
--- a/Framework/Scene2D/Internals/CairoFloatTextureRenderer.cpp Tue May 21 13:53:11 2019 +0200 +++ b/Framework/Scene2D/Internals/CairoFloatTextureRenderer.cpp Fri May 24 11:05:06 2019 +0200 @@ -37,8 +37,8 @@ float windowCenter, windowWidth; l.GetWindowing(windowCenter, windowWidth); - const float a = windowCenter - windowWidth; - const float slope = 256.0f / (2.0f * windowWidth); + const float a = windowCenter - windowWidth / 2.0f; + const float slope = 256.0f / windowWidth; const Orthanc::ImageAccessor& source = l.GetTexture(); const unsigned int width = source.GetWidth();