update document.lua according to API change in cre.cpp

This commit is contained in:
Qingping Hou
2012-11-11 14:29:56 +08:00
parent 818043752f
commit 36a4ead630

View File

@@ -203,7 +203,7 @@ end
function Document:drawCurrentView(target, x, y, rect, pos)
self._document:gotoPos(pos)
tile_bb = Blitbuffer.new(rect.w, rect.h)
self._document:drawCurrentView(tile_bb)
self._document:drawCurrentPage(tile_bb)
target:blitFrom(tile_bb, x, y, 0, 0, rect.w, rect.h)
end