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

Make framebuffer_update public #100

Merged
merged 1 commit into from Feb 9, 2022

Conversation

LinusCDE
Copy link
Collaborator

@LinusCDE LinusCDE commented Feb 8, 2022

I need this variable to be public, since you can't rotate the framebuffer in hardware otherwise (rm 1 only). Thought I could get away with a new instance, but since the new instance re initializes my changed data (and resets the rotation value), it wouldn't work that way.

On the rM 2, I know do this in software (was disabled there until now) but for the rM 1 I prefer to let the hardware do the pixel transformation.

Another solution to this would be to implement this as part of a new function to update the fix_screen_info. But I recon nobody except me will ever need this, and it might sound weird to "update fixed info". But I have no problems doing this instead if preferred.

Needed to get device for updating ioctl based
fixed_screen_info (yeah, that changes in some cases).

Example: https://github.com/LinusCDE/plato/blob/4208d76a/src/framebuffer/remarkable.rs#L288
@bkirwi
Copy link
Collaborator

bkirwi commented Feb 9, 2022

Yeah... it would be nice to have better abstractions here, and maybe we'll get to it someday, but this seems like the right call in the meantime. Thanks!

@bkirwi bkirwi merged commit bd7866c into canselcik:master Feb 9, 2022
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