aboutsummaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-05 23:25:57 +0800
committercrupest <crupest@outlook.com>2018-11-05 23:25:57 +0800
commitfb1b16cd0ab189d61efe6237b2c2b1f7f72f90de (patch)
treee537823b914b407dc9ce5b5a69f91dc93d834426 /src/application.cpp
parenta908cff41ce987f4adc597f9e5ad4105e56e6ff4 (diff)
downloadcru-fb1b16cd0ab189d61efe6237b2c2b1f7f72f90de.tar.gz
cru-fb1b16cd0ab189d61efe6237b2c2b1f7f72f90de.tar.bz2
cru-fb1b16cd0ab189d61efe6237b2c2b1f7f72f90de.zip
Develop cursor.
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 7be56f56..79aaf38d 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -103,9 +103,9 @@ namespace cru {
void LoadSystemCursor(HINSTANCE h_instance)
{
- ui::cursors[ui::cursor_arrow_key] = std::make_shared<ui::Cursor>(::LoadCursorW(h_instance, MAKEINTRESOURCEW(IDC_ARROW)), false);
- ui::cursors[ui::cursor_hand_key] = std::make_shared<ui::Cursor>(::LoadCursorW(h_instance, MAKEINTRESOURCEW(IDC_HAND)), false);
- ui::cursors[ui::cursor_i_beam_key] = std::make_shared<ui::Cursor>(::LoadCursorW(h_instance, MAKEINTRESOURCEW(IDC_IBEAM)), false);
+ ui::cursors::arrow = std::make_shared<ui::Cursor>(::LoadCursorW(nullptr, MAKEINTRESOURCEW(IDC_ARROW)), false);
+ ui::cursors::hand = std::make_shared<ui::Cursor>(::LoadCursorW(nullptr, MAKEINTRESOURCEW(IDC_HAND)), false);
+ ui::cursors::i_beam = std::make_shared<ui::Cursor>(::LoadCursorW(nullptr, MAKEINTRESOURCEW(IDC_IBEAM)), false);
}
}
@@ -137,8 +137,6 @@ namespace cru {
Application::~Application()
{
- ui::cursors.clear();
-
animation_manager_.reset();
instance_ = nullptr;
}