diff options
author | crupest <crupest@outlook.com> | 2019-05-24 23:45:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-05-24 23:45:58 +0800 |
commit | b6db663269201fa14a6a4aa1b9042645a9e8f859 (patch) | |
tree | 1984e2c2784fb9623d4c20fbdd6fc650792e133c /src/win/graph/win_brush.cpp | |
parent | b9df1bcaea0c19b2e29479cdb1ad5a39e23c4ee7 (diff) | |
download | cru-b6db663269201fa14a6a4aa1b9042645a9e8f859.tar.gz cru-b6db663269201fa14a6a4aa1b9042645a9e8f859.tar.bz2 cru-b6db663269201fa14a6a4aa1b9042645a9e8f859.zip |
...
Diffstat (limited to 'src/win/graph/win_brush.cpp')
-rw-r--r-- | src/win/graph/win_brush.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/win/graph/win_brush.cpp b/src/win/graph/win_brush.cpp index 262c3302..0c783366 100644 --- a/src/win/graph/win_brush.cpp +++ b/src/win/graph/win_brush.cpp @@ -1,16 +1,16 @@ #include "cru/win/graph/win_brush.hpp" #include "cru/win/exception.hpp" -#include "cru/win/graph/d2d_util.hpp" -#include "cru/win/graph/graph_manager.hpp" +#include "cru/win/graph/win_native_factory.hpp" +#include "cru/win/graph/util/convert_util.hpp" #include <cassert> namespace cru::win::graph { -WinSolidColorBrush::WinSolidColorBrush(GraphManager* graph_manager, +WinSolidColorBrush::WinSolidColorBrush(IWinNativeFactory* factory, const ui::Color& color) { - assert(graph_manager); - ThrowIfFailed(graph_manager->GetD2D1DeviceContext()->CreateSolidColorBrush( + assert(factory); + ThrowIfFailed(factory->GetD2D1DeviceContext()->CreateSolidColorBrush( util::Convert(color), &brush_)); } |