diff options
author | crupest <crupest@outlook.com> | 2018-11-10 21:53:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-10 21:53:33 +0800 |
commit | e5513daa53cb958b0c83d575c440f40aaf40f562 (patch) | |
tree | c6782f0cbfe4eca466f13ef571338e6b55342860 /src/ui/control.cpp | |
parent | cfcd03f564e82419345a7a6900fdc17c5b8c2631 (diff) | |
download | cru-e5513daa53cb958b0c83d575c440f40aaf40f562.tar.gz cru-e5513daa53cb958b0c83d575c440f40aaf40f562.tar.bz2 cru-e5513daa53cb958b0c83d575c440f40aaf40f562.zip |
...
Diffstat (limited to 'src/ui/control.cpp')
-rw-r--r-- | src/ui/control.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ui/control.cpp b/src/ui/control.cpp index 5d15e287..ed904de1 100644 --- a/src/ui/control.cpp +++ b/src/ui/control.cpp @@ -7,6 +7,7 @@ #include "graph/graph.hpp" #include "exception.hpp" #include "cru_debug.hpp" +#include "convert_util.hpp" #ifdef CRU_DEBUG_LAYOUT #include "ui_manager.hpp" @@ -376,12 +377,6 @@ namespace cru::ui window_ = nullptr; } - - inline D2D1_RECT_F Convert(const Rect& rect) - { - return D2D1::RectF(rect.left, rect.top, rect.left + rect.width, rect.top + rect.height); - } - void Control::OnDrawCore(ID2D1DeviceContext* device_context) { #ifdef CRU_DEBUG_LAYOUT |