From f3af6c7e5b46f4209a4981e5d7be217368f40b15 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 8 Feb 2024 15:12:29 +0800 Subject: Get rid of GSL. --- include/cru/platform/graphics/Base.h | 2 +- include/cru/platform/graphics/direct2d/WindowRenderTarget.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'include/cru/platform/graphics') diff --git a/include/cru/platform/graphics/Base.h b/include/cru/platform/graphics/Base.h index 3bb9b7b4..3f3ae0b4 100644 --- a/include/cru/platform/graphics/Base.h +++ b/include/cru/platform/graphics/Base.h @@ -28,7 +28,7 @@ struct IPainter; struct ITextLayout; struct TextHitTestResult { - gsl::index position; + Index position; bool trailing; bool inside_text; }; diff --git a/include/cru/platform/graphics/direct2d/WindowRenderTarget.h b/include/cru/platform/graphics/direct2d/WindowRenderTarget.h index c0251880..f77ce471 100644 --- a/include/cru/platform/graphics/direct2d/WindowRenderTarget.h +++ b/include/cru/platform/graphics/direct2d/WindowRenderTarget.h @@ -5,8 +5,7 @@ namespace cru::platform::graphics::direct2d { // Represents a window render target. class CRU_WIN_GRAPHICS_DIRECT_API D2DWindowRenderTarget : public Object { public: - D2DWindowRenderTarget(gsl::not_null factory, - HWND hwnd); + D2DWindowRenderTarget(DirectGraphicsFactory* factory, HWND hwnd); CRU_DELETE_COPY(D2DWindowRenderTarget) CRU_DELETE_MOVE(D2DWindowRenderTarget) -- cgit v1.2.3