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:
Dobrica Pavlinusic
2012-04-09 15:52:36 +02:00
parent 5d9176907f
commit 9dd9df0356
3 changed files with 66 additions and 4 deletions

View File

@@ -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