Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/OpenGLCompositor.cpp @ 848:80829436ce0c am-mainline
starting to re-implement radiography editor with latest framework
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 13 Jun 2019 16:47:02 +0200 |
parents | 266e2b0b9abc |
children | 9c2f6d6b9f4a |
comparison
equal
deleted
inserted
replaced
842:2b245953b44b | 848:80829436ce0c |
---|---|
205 dict.LoadCodepage(renderer, codepage); | 205 dict.LoadCodepage(renderer, codepage); |
206 | 206 |
207 SetFont(index, dict); | 207 SetFont(index, dict); |
208 } | 208 } |
209 #endif | 209 #endif |
210 | |
211 | |
212 ScenePoint2D OpenGLCompositor::GetPixelCenterCoordinates(int x, int y) const | |
213 { | |
214 return ScenePoint2D( | |
215 static_cast<double>(x) + 0.5 - static_cast<double>(canvasWidth_) / 2.0, | |
216 static_cast<double>(y) + 0.5 - static_cast<double>(canvasHeight_) / 2.0); | |
217 } | |
218 } | 210 } |