Working identity LUT

This commit is contained in:
Ian Gulliver
2017-08-07 06:15:20 +00:00
parent 89a54867f3
commit 100c44fe4e
7 changed files with 81 additions and 14 deletions

View File

@@ -61,7 +61,7 @@ void Image<X, Y>::DrawSquare(const Coord& start, const Color& color, uint32_t le
DrawRectangle(start, color, length, length);
}
static void WriteCallback(png_structp png_ptr, png_bytep data, png_size_t length) {
static inline void WriteCallback(png_structp png_ptr, png_bytep data, png_size_t length) {
auto dest = static_cast<std::string*>(png_get_io_ptr(png_ptr));
dest->append(reinterpret_cast<char*>(data), length);
}