mirror of
https://github.com/koreader/koreader
synced 2024-11-13 19:11:25 +00:00
fix renderImage invocation
This commit is contained in:
parent
ee6b5a7fe1
commit
2050c0aa66
2
base
2
base
@ -1 +1 @@
|
|||||||
Subproject commit 217e786836bcba654c53ecde6c1f2e9b7ac66840
|
Subproject commit 1c0cf8963b19068679b19ef52ebffd0ffafae627
|
@ -148,7 +148,7 @@ function CreDocument:getCoverPageImage()
|
|||||||
local data, size = self._document:getCoverPageImageData()
|
local data, size = self._document:getCoverPageImageData()
|
||||||
if data and size then
|
if data and size then
|
||||||
local Mupdf = require("ffi/mupdf")
|
local Mupdf = require("ffi/mupdf")
|
||||||
local image = Mupdf:renderImage(data, size)
|
local image = Mupdf.renderImage(data, size)
|
||||||
ffi.C.free(data)
|
ffi.C.free(data)
|
||||||
return image
|
return image
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user