aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-01 18:49:55 +0800
committercrupest <crupest@outlook.com>2022-02-01 18:49:55 +0800
commitd1c14725443399f7145e314d79597ec35b639eeb (patch)
tree50c6743d6766cdc6fd04921d305380143b42d3dc /include/cru/platform/graphics
parentb9a553d4acc15ec981636b30db537be280d593e5 (diff)
downloadcru-d1c14725443399f7145e314d79597ec35b639eeb.tar.gz
cru-d1c14725443399f7145e314d79597ec35b639eeb.tar.bz2
cru-d1c14725443399f7145e314d79597ec35b639eeb.zip
...
Diffstat (limited to 'include/cru/platform/graphics')
-rw-r--r--include/cru/platform/graphics/NullPainter.hpp4
-rw-r--r--include/cru/platform/graphics/Painter.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/cru/platform/graphics/NullPainter.hpp b/include/cru/platform/graphics/NullPainter.hpp
index a47546b6..54c610c1 100644
--- a/include/cru/platform/graphics/NullPainter.hpp
+++ b/include/cru/platform/graphics/NullPainter.hpp
@@ -66,8 +66,8 @@ class CRU_PLATFORM_GRAPHICS_API NullPainter : public Object,
CRU_UNUSED(brush)
}
- void DrawImage(const Rect& rect, IImage* image) override {
- CRU_UNUSED(rect)
+ void DrawImage(const Point& offset, IImage* image) override {
+ CRU_UNUSED(offset)
CRU_UNUSED(image)
}
diff --git a/include/cru/platform/graphics/Painter.hpp b/include/cru/platform/graphics/Painter.hpp
index eb5bf8e1..171e6260 100644
--- a/include/cru/platform/graphics/Painter.hpp
+++ b/include/cru/platform/graphics/Painter.hpp
@@ -27,7 +27,7 @@ struct CRU_PLATFORM_GRAPHICS_API IPainter : virtual IPlatformResource {
virtual void DrawText(const Point& offset, ITextLayout* text_layout,
IBrush* brush) = 0;
- virtual void DrawImage(const Rect& rect, IImage* image) = 0;
+ virtual void DrawImage(const Point& offset, IImage* image) = 0;
virtual void PushLayer(const Rect& bounds) = 0;