Skip to content

Commit

Permalink
Undo some automatic substiution from Visual Studio 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
Ybalrid committed Dec 30, 2019
1 parent 6025301 commit fec752c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/cpp-sdl2/window.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ class Window
bool grabbed() const { return SDL_GetWindowGrab(window_); }

///Move window to specific location on screen
///\param size Vector pointing to the new window location
///\param v Vector pointing to the new window location
Window& move_to(Vec2i const& v)
{
SDL_SetWindowPosition(window_, v.x, v.y);
return *this;
}
///Translate window on screen
///\param size translation vector
///\param v translation vector
Window& move_by(Vec2i const& v) { return move_to(position() + v); }
///Get current window position
Vec2i position() const
Expand Down

0 comments on commit fec752c

Please sign in to comment.