MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / PixelAlignXY

Method PixelAlignXY

engine/Poseidon/Graphics/Core/Engine.cpp:230–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void Engine::PixelAlignXY(Point2DAbs& pos)
231{
232 pos.x = toInt(pos.x) + 0.5f;
233 pos.y = toInt(pos.y) + 0.5f;
234}
235void Engine::PixelAlignX(Point2DAbs& pos)
236{
237 pos.x = toInt(pos.x) + 0.5f;

Callers 2

DrawTargetInfoMethod · 0.80
DrawCursorMethod · 0.80

Calls 1

toIntFunction · 0.50

Tested by

no test coverage detected