Handle the BlitBuffer struct changes

* stride is now a size_t
  On some platforms, that's 64 bits, which means it's no longer
  automatically converted to a Lua number to avoid precision loss.
  Do that ourselves, because lua-serialize doesn't know how to handle an
  uint64_t cdata ;).
This commit is contained in:
NiLuJe
2020-12-04 23:43:57 +01:00
parent db9b485e2d
commit d80d6dc562
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ end
function TileCacheItem:dump(filename)
logger.dbg("dumping tile cache to", filename, self.excerpt)
return serial.dump(self.size, self.excerpt, self.pageno,
self.bb.w, self.bb.h, self.bb.stride, self.bb:getType(),
self.bb.w, self.bb.h, tonumber(self.bb.stride), self.bb:getType(),
Blitbuffer.tostring(self.bb), filename)
end