Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android: refactor full eink updates #1716

Merged
merged 2 commits into from
Dec 22, 2023
Merged

Conversation

pazos
Copy link
Member

@pazos pazos commented Dec 20, 2023

Goes with koreader/android-luajit-launcher#451


This change is Reviewable

end
-- rockchip rk3x platform
elseif has_eink_screen and (eink_platform == "rockchip") then
if not has_eink_screen then return end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It always calls updateWindow or whatever it's called for the ANativeWindowBuffer thing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all partial functions have check for has_eink_full_support.

Wouldn't be better use the same pattern for refreshFullImp?

function framebuffer:refreshFullImp(x, y, w, h) -- luacheck: ignore
self:_updateWindow()
if has_eink_screen then
self:_updateFull()
end

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes!

@pazos pazos merged commit 8b478cd into koreader:master Dec 22, 2023
1 of 2 checks passed
@pazos pazos deleted the android-eink branch December 22, 2023 20:57
NiLuJe added a commit to koreader/koreader that referenced this pull request Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants