From d1c14725443399f7145e314d79597ec35b639eeb Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 1 Feb 2022 18:49:55 +0800 Subject: ... --- include/cru/platform/graphics/NullPainter.hpp | 4 ++-- include/cru/platform/graphics/Painter.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include/cru/platform') 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; -- cgit v1.2.3