Mercurial > malikania
diff examples/image/main.cpp @ 186:16ff680a8a94
Common: move point, line and rectangle, closes #913 @30m
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 20 Oct 2018 21:12:20 +0200 |
parents | 3107ce017c3a |
children | 0a285d62ace7 |
line wrap: on
line diff
--- a/examples/image/main.cpp Sat Oct 20 20:38:43 2018 +0200 +++ b/examples/image/main.cpp Sat Oct 20 21:12:20 2018 +0200 @@ -35,7 +35,7 @@ auto y = (400 / 2) - (image.get_size().height / 2); window.clear(); - image.draw(window, mlk::client::point{ + image.draw(window, { static_cast<int>(x), static_cast<int>(y) });