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: Fix nightmode on devices w/ RGB565 windows w/ the C blitter #1293

Merged
merged 1 commit into from
Jan 23, 2021

Conversation

NiLuJe
Copy link
Member

@NiLuJe NiLuJe commented Jan 23, 2021

Regardless of whether we actually could potentially coerce those buffers to RGB32, the sanity check makes sense ;).


This change is Reviewable

@NiLuJe
Copy link
Member Author

NiLuJe commented Jan 23, 2021

xref: koreader/koreader#7187

@NiLuJe
Copy link
Member Author

NiLuJe commented Jan 23, 2021

In practice, this might end up being slower than the Lua BB, and the invert is not accurate, unlike in Lua. But at least it doesn't crash ;p.

Yay, RGB565!

Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

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

/shrug ;-)

@NiLuJe NiLuJe merged commit 0e5de8a into koreader:master Jan 23, 2021
@Frenzie Frenzie changed the title Android: Fix nighmode on devices w/ RGB565 windows w/ the C blitter Android: Fix nightmode on devices w/ RGB565 windows w/ the C blitter Jan 24, 2021
NiLuJe added a commit to NiLuJe/koreader that referenced this pull request Jan 26, 2021
roygbyte pushed a commit to roygbyte/koreader-base that referenced this pull request Mar 3, 2022
…oreader#1293)

The CBB can't do an invertBlitFrom if source & dest type don't match, so, do it another way in these instances ;).
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

2 participants