From 141fbebbe604eac53d12e7de11f999044e286cb6 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 10 Nov 2020 14:42:36 +0800 Subject: ... --- src/win/gui/Cursor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/win/gui/Cursor.cpp') diff --git a/src/win/gui/Cursor.cpp b/src/win/gui/Cursor.cpp index 5f3086fa..80e8a749 100644 --- a/src/win/gui/Cursor.cpp +++ b/src/win/gui/Cursor.cpp @@ -35,7 +35,8 @@ WinCursor* LoadWinCursor(const wchar_t* name) { WinCursorManager::WinCursorManager() : sys_arrow_(LoadWinCursor(IDC_ARROW)), - sys_hand_(LoadWinCursor(IDC_HAND)) {} + sys_hand_(LoadWinCursor(IDC_HAND)), + sys_ibeam_(LoadWinCursor(IDC_IBEAM)) {} std::shared_ptr WinCursorManager::GetSystemWinCursor( SystemCursorType type) { @@ -44,6 +45,8 @@ std::shared_ptr WinCursorManager::GetSystemWinCursor( return sys_arrow_; case SystemCursorType::Hand: return sys_hand_; + case SystemCursorType::IBeam: + return sys_ibeam_; default: throw std::runtime_error("Unknown system cursor value."); } -- cgit v1.2.3