Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/OpenGLCompositor.cpp @ 617:7efa2543699d
simplification
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 02 May 2019 18:21:59 +0200 |
parents | 6129b1e5ba42 |
children | 266e2b0b9abc |
comparison
equal
deleted
inserted
replaced
616:97926984d5d0 | 617:7efa2543699d |
---|---|
200 dict.LoadCodepage(renderer, codepage); | 200 dict.LoadCodepage(renderer, codepage); |
201 | 201 |
202 SetFont(index, dict); | 202 SetFont(index, dict); |
203 } | 203 } |
204 #endif | 204 #endif |
205 | |
206 | |
207 ScenePoint2D OpenGLCompositor::GetPixelCenterCoordinates(int x, int y) const | |
208 { | |
209 return ScenePoint2D( | |
210 static_cast<double>(x) + 0.5 - static_cast<double>(canvasWidth_) / 2.0, | |
211 static_cast<double>(y) + 0.5 - static_cast<double>(canvasHeight_) / 2.0); | |
212 } | |
205 } | 213 } |