diff options
author | crupest <crupest@outlook.com> | 2022-02-01 18:49:55 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-01 18:49:55 +0800 |
commit | d1c14725443399f7145e314d79597ec35b639eeb (patch) | |
tree | 50c6743d6766cdc6fd04921d305380143b42d3dc /include/cru/platform/graphics | |
parent | b9a553d4acc15ec981636b30db537be280d593e5 (diff) | |
download | cru-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.hpp | 4 | ||||
-rw-r--r-- | include/cru/platform/graphics/Painter.hpp | 2 |
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; |