# HG changeset patch # User Sebastien Jodogne # Date 1558688540 -7200 # Node ID e6850c8664699ea8af11770f39efca81320633e8 # Parent 4ba8892870a2cf33a778e77a9e54cb5486f216cd fix windowing diff -r 4ba8892870a2 -r e6850c866469 Framework/Scene2D/Internals/CairoFloatTextureRenderer.cpp --- 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(); diff -r 4ba8892870a2 -r e6850c866469 Framework/Scene2D/Internals/OpenGLFloatTextureProgram.cpp --- a/Framework/Scene2D/Internals/OpenGLFloatTextureProgram.cpp Thu May 23 20:37:19 2019 +0200 +++ b/Framework/Scene2D/Internals/OpenGLFloatTextureProgram.cpp Fri May 24 11:02:20 2019 +0200 @@ -41,7 +41,7 @@ " float v = (t.r * 256.0 + t.g) * 256.0; \n" " v = v * u_slope + u_offset; \n" // (*) " float a = u_windowCenter - u_windowWidth; \n" - " float dy = 1.0 / (2.0 * u_windowWidth); \n" + " float dy = 1.0 / u_windowWidth; \n" " if (v <= a) \n" " v = 0.0; \n" " else \n"