mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #162 from dpavlin/master
few more tweaks for manual crop rouler
This commit is contained in:
@@ -2241,7 +2241,7 @@ function UniReader:addAllCommands()
|
||||
max = max / step
|
||||
if max > #keys then max = #keys end
|
||||
|
||||
local face = Font:getFace("cfont", 10)
|
||||
local face = Font:getFace("hpkfont", 11)
|
||||
|
||||
for i = 1, max, 1 do
|
||||
local key = keys[i]
|
||||
@@ -2256,7 +2256,7 @@ function UniReader:addAllCommands()
|
||||
end
|
||||
if x_direction < 0 then tick = tick - step end
|
||||
tick = tick - step * x_direction / 2
|
||||
renderUtf8Text(fb.bb, x_s+tick+3, y_s+3, face, key)
|
||||
renderUtf8Text(fb.bb, x_s+tick+2, y_s+4, face, key)
|
||||
else
|
||||
local tick = i * step * y_direction
|
||||
debug("y tick",i,tick,key)
|
||||
@@ -2267,7 +2267,7 @@ function UniReader:addAllCommands()
|
||||
end
|
||||
if y_direction > 0 then tick = tick + step end
|
||||
tick = tick - step * y_direction / 2
|
||||
renderUtf8Text(fb.bb, x_s-3, y_s+tick-3, face, key)
|
||||
renderUtf8Text(fb.bb, x_s-3, y_s+tick-1, face, key)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -2287,8 +2287,8 @@ function UniReader:addAllCommands()
|
||||
x,y,w,h = unireader:getRectInScreen( new_bbox["x0"], new_bbox["y0"], new_bbox["x1"], new_bbox["y1"] )
|
||||
fb.bb:invertRect( x,y, w,h )
|
||||
--fb.bb:invertRect( x+1,y+1, w-2,h-2 ) -- just border?
|
||||
InfoMessage:show("new page bbox");
|
||||
fb:refresh(1)
|
||||
showInfoMsgWithDelay("new page bbox", 2000, 1);
|
||||
self:redrawCurrentPage()
|
||||
|
||||
self.rcount = self.rcountmax -- force next full refresh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user