diff options
author | crupest <crupest@outlook.com> | 2020-11-10 14:42:36 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-10 14:42:36 +0800 |
commit | 141fbebbe604eac53d12e7de11f999044e286cb6 (patch) | |
tree | 96163982b67d4bef1e4c40ac528bc62d43a26b0f /src/win | |
parent | c5fe6fc72e9bca222e6d7b94fd47523089083fdd (diff) | |
download | cru-141fbebbe604eac53d12e7de11f999044e286cb6.tar.gz cru-141fbebbe604eac53d12e7de11f999044e286cb6.tar.bz2 cru-141fbebbe604eac53d12e7de11f999044e286cb6.zip |
...
Diffstat (limited to 'src/win')
-rw-r--r-- | src/win/gui/Cursor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<WinCursor> WinCursorManager::GetSystemWinCursor( SystemCursorType type) { @@ -44,6 +45,8 @@ std::shared_ptr<WinCursor> 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."); } |