From f834f25794cfb746079e92d58c7410b767c57208 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 14 Jan 2021 15:48:54 -0800 Subject: COM-ify all slang-gfx interfaces. (#1656) * COM-ify all slang-gfx interfaces. --- tools/gfx/surface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/gfx/surface.cpp') diff --git a/tools/gfx/surface.cpp b/tools/gfx/surface.cpp index 28fe744de..636881fca 100644 --- a/tools/gfx/surface.cpp +++ b/tools/gfx/surface.cpp @@ -3,6 +3,7 @@ #include #include +#include #include "../../source/core/slang-list.h" @@ -72,7 +73,7 @@ void MallocSurfaceAllocator::deallocate(Surface& surface) /* static */int Surface::calcRowSize(Format format, int width) { - size_t pixelSize = RendererUtil::getFormatSize(format); + size_t pixelSize = gfxGetFormatSize(format); if (pixelSize == 0) { return 0; -- cgit v1.2.3