-
Notifications
You must be signed in to change notification settings - Fork 15
changes for blit refactor to bitmaptools. #87
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
base: main
Are you sure you want to change the base?
Conversation
My two cents... |
I tried implementing the fallback logic for flip_input today but I'm running into |
The flip_input test script works successfully on When I come back to this I'll try to narrow it further and figure out what the specific core change was. Also worth looking into the history of BitmapLabel. This library was trying to access |
|
I've found some more information about this: While it did run without crashing on 7.3.3 it wasn't actually "functional" it turns out. The intention for flip_input is to animate the text when changing between items in the list. At 7.3.3 it doesn't animate but rather blinks to invisible and then comes back again showing the new number. Basically the animation isn't being shown but the change to numbers does occur just with a blank gap inbetween instead of the animation. The most recent version where flip_input actually worked with it's intended animation is Everything noted above applies specifically to vertical orientation flip_inputs. I have not found any prior version where the horizontal flip_input animation is working successfully, it could have to do with library versions in the mix as well I do believe I have seen it work in the past so I think it must've at some point. Every version that I try now is raising an As far as I can tell the crux of this issue is values either less than 0, or greater than target_bmp.width are being passed to one or more of the arguments to the calls to The intended animation does include the old number "flying" up or down out of the visible frame and the new number "flying" up or down into frame and overshooting the final landing point slightly then snapping back. I could imagine a scenario where it used to be allowed to pass out of bounds values and blit() would accept them + "silently" skip any pixels that were out of the range but work successfully otherwise and if that was the case the code in flip_input could have been relying on that behavior. |
These changes go along with #8136 in the core.
I made icon_animated fully backward and forwards compatible with hasattr logic. For flip_input, there were several locations which needed updating so I opted for something more concise in leaving a comment with the prior version and adding the new version below.
I'm open to other options as well. If there is a desire to forego backwards compatibility altogether, or a preference to make flip_input use the logic to be compatible without switching commented lines.