MCPcopy Create free account
hub / github.com/DFHack/dfhack / global

Function global

library/include/modules/Screen.h:158–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 return df::coord2d(pos.x - view.first.x, pos.y - view.first.y);
157 }
158 df::coord2d global(df::coord2d pos) const {
159 return df::coord2d(pos.x + view.first.x, pos.y + view.first.y);
160 }
161 df::coord2d global(int x, int y) const {
162 return df::coord2d(x + view.first.x, y + view.first.y);
163 }

Callers 2

viewportFunction · 0.85
Screen.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected