mirror of
https://github.com/koreader/koreader.git
synced 2025-12-18 12:02:09 +01:00
Fix partial HW dithered refreshes sometimes appearing to shift refreshed content (#6267)
* Fix HW dithered partial refreshes sometimes behaving as if the refreshed content had moved a few pixels to the side... Probably a kernel issue with the alignment fixup in the EPDC? * Get rid of the legacy coordinates fixup It shouldn't be necessary anymore. And I'd rather fix the root cause, anyway. * Bump base (https://github.com/koreader/koreader-base/pull/1116) * Missed a few DIVs in #6224
This commit is contained in:
@@ -634,7 +634,7 @@ function ReaderRolling:onGotoXPointer(xp, marker_xp)
|
||||
if BD.mirroredUILayout() then
|
||||
-- In the middle margin, on the right of text
|
||||
-- Same trick as below, assuming page2_x is equal to page 1 right x
|
||||
screen_x = Screen:getWidth() / 2
|
||||
screen_x = math.floor(Screen:getWidth() * 0.5)
|
||||
local page2_x = self.ui.document:getPageOffsetX(self.ui.document:getCurrentPage()+1)
|
||||
marker_w = page2_x + marker_w - screen_x
|
||||
screen_x = screen_x - marker_w
|
||||
@@ -648,7 +648,7 @@ function ReaderRolling:onGotoXPointer(xp, marker_xp)
|
||||
-- In the middle margin, on the left of text
|
||||
-- This is a bit tricky with how the middle margin is sized
|
||||
-- by crengine (see LVDocView::updateLayout() in lvdocview.cpp)
|
||||
screen_x = Screen:getWidth() / 2
|
||||
screen_x = math.floor(Screen:getWidth() * 0.5)
|
||||
local page2_x = self.ui.document:getPageOffsetX(self.ui.document:getCurrentPage()+1)
|
||||
marker_w = page2_x + marker_w - screen_x
|
||||
end
|
||||
@@ -1086,7 +1086,7 @@ function ReaderRolling:showEngineProgress(percent)
|
||||
-- so it does not override the footer or a bookmark dogear
|
||||
local x = 0
|
||||
local y = Size.margin.small
|
||||
local w = Screen:getWidth() / 3
|
||||
local w = math.floor(Screen:getWidth() / 3)
|
||||
local h = Size.line.progress
|
||||
if self.engine_progress_widget then
|
||||
self.engine_progress_widget:setPercentage(percent)
|
||||
|
||||
Reference in New Issue
Block a user