diff options
author | crupest <crupest@outlook.com> | 2023-10-12 17:10:18 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-10-12 17:10:18 +0800 |
commit | 9a077caa6d3f7eb8255ae68916dccac9b50a4333 (patch) | |
tree | 486f5f01d5de8ff1b236029e1b955df1d70728a8 /src/platform/graphics/web_canvas/WebCanvasRef.cpp | |
parent | 6fc14693d01f2be98b45d70405b16883607d4666 (diff) | |
download | cru-9a077caa6d3f7eb8255ae68916dccac9b50a4333.tar.gz cru-9a077caa6d3f7eb8255ae68916dccac9b50a4333.tar.bz2 cru-9a077caa6d3f7eb8255ae68916dccac9b50a4333.zip |
...
Diffstat (limited to 'src/platform/graphics/web_canvas/WebCanvasRef.cpp')
-rw-r--r-- | src/platform/graphics/web_canvas/WebCanvasRef.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/graphics/web_canvas/WebCanvasRef.cpp b/src/platform/graphics/web_canvas/WebCanvasRef.cpp index c4f75626..886131f6 100644 --- a/src/platform/graphics/web_canvas/WebCanvasRef.cpp +++ b/src/platform/graphics/web_canvas/WebCanvasRef.cpp @@ -1,5 +1,5 @@ #include "cru/platform/graphics/web_canvas/WebCanvasRef.h" -#include "cru/platform/web/JsUtility.h" +#include "cru/platform/web/Js.h" #include <cassert> #include <utility> @@ -7,7 +7,7 @@ namespace cru::platform::graphics::web_canvas { WebCanvasRef::WebCanvasRef(emscripten::val canvas_val) : val_(std::move(canvas_val)) { - assert(web::IsNotNullAndInstanceOf(val_, "HTMLCanvasElement")); + assert(web::js::IsNotNullAndInstanceOf(val_, "HTMLCanvasElement")); } int WebCanvasRef::GetWidth() const { return val_["width"].as<int>(); } |