Home
last modified time | relevance | path

Searched refs:subpixelPos (Results 1 – 1 of 1) sorted by relevance

/dports/graphics/aseprite/aseprite-1.2.9/src/app/ui/editor/
H A Deditor.cpp2101 gfx::PointT<double> subpixelPos(0.5, 0.5); in setZoomAndCenterInMouse() local
2118 subpixelPos.x = (0.5 + screenPos.x - screenPos2.x) / m_proj.scaleX(); in setZoomAndCenterInMouse()
2121 if (subpixelPos.x >= 0.5-t && subpixelPos.x <= 0.5+t) in setZoomAndCenterInMouse()
2122 subpixelPos.x = 0.5; in setZoomAndCenterInMouse()
2127 subpixelPos.y = (0.5 + screenPos.y - screenPos2.y) / m_proj.scaleY(); in setZoomAndCenterInMouse()
2130 if (subpixelPos.y >= 0.5-t && subpixelPos.y <= 0.5+t) in setZoomAndCenterInMouse()
2131 subpixelPos.y = 0.5; in setZoomAndCenterInMouse()
2138 … (screenPos.x-vp.x) + proj.applyX(spritePos.x+proj.removeX(1)/2) + int(proj.applyX(subpixelPos.x)), in setZoomAndCenterInMouse()
2139 …(screenPos.y-vp.y) + proj.applyY(spritePos.y+proj.removeY(1)/2) + int(proj.applyY(subpixelPos.y))); in setZoomAndCenterInMouse()