-
Notifications
You must be signed in to change notification settings - Fork 70
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
Incorrect min_y? #122
Comments
Yeah that definitely looks like it should be |
I haven't given it much thought, but shouldn't these be rotation aware values? Is min_y the same when rotated by 90 or 270 degrees? |
Yes, there're the other variables which take the rotation into account. However it's a bit weird to have the manual comparison in the code. There're |
You mislead me :) That block is marking the whole display to be updated, the original block resets the area to nothing. |
Oop yes you're right, min/max are swapped there. My bad! |
Based on this metric I believe the linked line may be incorrect.
https://github.com/jamwaffles/ssd1306/blob/96170fd21419e73fdb2299f395b07836d52d090f/src/mode/graphics.rs#L161
If that's supposed to be height, I'm happy to fix it, otherwise please provide an explanation why it's width.
The text was updated successfully, but these errors were encountered: