diff options
Diffstat (limited to 'tools/gfx/surface.cpp')
| -rw-r--r-- | tools/gfx/surface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <stdlib.h> #include <stdio.h> +#include <string.h> #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; |
