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

A few quick blitbuffer fixes #1440

Merged
merged 2 commits into from Dec 12, 2021
Merged

A few quick blitbuffer fixes #1440

merged 2 commits into from Dec 12, 2021

Conversation

NiLuJe
Copy link
Member

@NiLuJe NiLuJe commented Dec 11, 2021

As discussed at the tail end of koreader/koreader#3905 ;).


This change is Reviewable

source BB types.

That means ignoring the rotation flag in *every* case, and documenting
that fact.

Avoids crashes on rotated buffers of common types, where the stride
member matches the unrotated layout, while the getWidth & getHeight
methods did not.
@NiLuJe NiLuJe merged commit 2e53592 into koreader:master Dec 12, 2021
NiLuJe added a commit to NiLuJe/koreader that referenced this pull request Dec 12, 2021
NiLuJe added a commit to koreader/koreader that referenced this pull request Dec 13, 2021
* TileCache: Preserve BlitBuffer's inversion & rotation

This somehow fell through the cracks for all these years ;).

(We can't simply save the config field directly, because bb.fromstring
always generates an allocated bb, which may not be the case of the
source bb).

* Bump base

koreader/koreader-base#1440
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