add cre view mode support in frontend

This commit is contained in:
Qingping Hou
2012-12-13 12:41:48 +08:00
parent 454ffc0479
commit 1675d8667b
3 changed files with 11 additions and 3 deletions

View File

@@ -57,7 +57,8 @@ function ReaderView:paintTo(bb, x, y)
self.state.pos)
end
-- dim last read area
if self.dim_area.w ~= 0 and self.dim_area.h ~= 0 then
if self.document.view_mode ~= "page"
and self.dim_area.w ~= 0 and self.dim_area.h ~= 0 then
bb:dimRect(
self.dim_area.x, self.dim_area.y,
self.dim_area.w, self.dim_area.h