aboutsummaryrefslogtreecommitdiff
path: root/src/win
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-10 14:42:36 +0800
committercrupest <crupest@outlook.com>2020-11-10 14:42:36 +0800
commit141fbebbe604eac53d12e7de11f999044e286cb6 (patch)
tree96163982b67d4bef1e4c40ac528bc62d43a26b0f /src/win
parentc5fe6fc72e9bca222e6d7b94fd47523089083fdd (diff)
downloadcru-141fbebbe604eac53d12e7de11f999044e286cb6.tar.gz
cru-141fbebbe604eac53d12e7de11f999044e286cb6.tar.bz2
cru-141fbebbe604eac53d12e7de11f999044e286cb6.zip
...
Diffstat (limited to 'src/win')
-rw-r--r--src/win/gui/Cursor.cpp5
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.");
}