-
Notifications
You must be signed in to change notification settings - Fork 1.2k
edgeclk: Reset graphics before initial clearing of the screen. #3813
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: master
Are you sure you want to change the base?
Conversation
Helps in some situations if using fastload utils where the graphics from the previous app would not be cleared.
Yeah very odd, I can't think how the graphics would remain - like you say, I'd expect (at worst) a different BG colour to be used instead. LGTM anyway, happy to merge if you are |
@gfwilliams I think we probably don't have to look into why If so I'll just merge this. |
You can always just do
I don't believe you can set a transparent color, but about the only thing I can think of is Maybe try |
I'll try this 🙏👍 |
I think we found the culprit then at BangleApps/apps/widmsggrid/widget.js Line 33 in a243ac6
setClipRect I find between leaving spotrem for edgeclk . So it's not a bug with the firmware which is nice :)
So I can look at adding a But what is the policy really? That:
So, I prefer to just fix Writing this out it feels a bit bikeshedding-y 😂 |
Yes, this one - assume anyone could have been messing with Graphics color/font/etc when your execution starts - and if that calls other functions you don't want to add .reset to all of those. But an exception really is setClipRect should always be reset to point to the whole screen, because otherwise you end up with really annoying hard to track down bugs (and calling setClipRect should be pretty rare anyway) - so Also, there are cases like |
Helps in some situations if using fastload utils where the graphics from the previous app would not be cleared.
What triggered the issue for me was:
widmsggrid
spotrem
by clicking the HW button on the main ui.spotrem
graphics are showing behind the clock graphics.I didn't figure out what exactly caused it, but maybe somehow the theme bg color ended up transparent or not set for the
g.clear()
call. This change seems to fix it. But don't know if we should be looking to fix something somewhere else.