diff --git a/osx/tools/graphtool.cpp b/osx/tools/graphtool.cpp index f38511d3..aa16fbab 100644 --- a/osx/tools/graphtool.cpp +++ b/osx/tools/graphtool.cpp @@ -964,6 +964,10 @@ void Region::offset(int x, int y) { } } +void Region::offset(location off) { + offset(off.x, off.y); +} + void Region::setStencil(sf::RenderTarget& where) { setActiveRenderTarget(where); glClearStencil(0); diff --git a/osx/tools/graphtool.h b/osx/tools/graphtool.h index 157344d1..73cd37df 100644 --- a/osx/tools/graphtool.h +++ b/osx/tools/graphtool.h @@ -68,6 +68,7 @@ public: void addRect(RECT rect); void clear(); void offset(int x, int y); + void offset(location off); Region& operator-=(Region& other); };