comparison 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
comparison
equal deleted inserted replaced
769:4ba8892870a2 770:e6850c866469
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;
42 const float slope = 256.0f / (2.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();
47 texture_.SetSize(width, height, false); 47 texture_.SetSize(width, height, false);