diff options
Diffstat (limited to 'libdimensionxx')
-rw-r--r-- | libdimensionxx/canvas.cpp | 4 | ||||
-rw-r--r-- | libdimensionxx/dimensionxx/canvas.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libdimensionxx/canvas.cpp b/libdimensionxx/canvas.cpp index 411d4e8..35ff2fb 100644 --- a/libdimensionxx/canvas.cpp +++ b/libdimensionxx/canvas.cpp @@ -46,14 +46,14 @@ namespace Dimension return m_canvas->y; } - // Get a particular pixel, thread-safely, with dmnsn_get_pixel(). + // Get a particular pixel Color Canvas::pixel(unsigned int x, unsigned int y) const { return Color(dmnsn_get_pixel(m_canvas, x, y)); } - // Set a particular pixel, thread-safely, with dmnsn_set_pixel(). + // Set a particular pixel void Canvas::pixel(unsigned int x, unsigned int y, const Color& c) { diff --git a/libdimensionxx/dimensionxx/canvas.hpp b/libdimensionxx/dimensionxx/canvas.hpp index f9e77e5..84787ed 100644 --- a/libdimensionxx/dimensionxx/canvas.hpp +++ b/libdimensionxx/dimensionxx/canvas.hpp @@ -42,7 +42,7 @@ namespace Dimension unsigned int width() const; unsigned int height() const; - // Get and set a pixel, thread-safely. + // Get and set a pixel Color pixel(unsigned int x, unsigned int y) const; void pixel(unsigned int x, unsigned int y, const Color& c); |