mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
added dimRect and use it
dimRect might be useful if we want to display status messages over content (as opposed to erasing background)
This commit is contained in:
@@ -104,9 +104,9 @@ function CREReader:goto(pos, pos_type)
|
||||
|
||||
print("## self.show_overlap "..self.show_overlap)
|
||||
if self.show_overlap < 0 then
|
||||
fb.bb:invertRect(0,0, width, -self.show_overlap)
|
||||
fb.bb:dimRect(0,0, width, -self.show_overlap)
|
||||
elseif self.show_overlap > 0 then
|
||||
fb.bb:invertRect(0,height - self.show_overlap, width, self.show_overlap)
|
||||
fb.bb:dimRect(0,height - self.show_overlap, width, self.show_overlap)
|
||||
end
|
||||
self.show_overlap = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user