Widgets can create graphic glitches #2686
Replies: 8 comments
-
Posted at 2021-07-07 by @gfwilliams Ahh - thanks. Yes, double-buffering can't work with Widgets (the screen space available is quite small, and the widgets aren't expecting that they will effectively have to redraw twice - once of each of the 2 buffers), although I hadn't considered that '.flip' would break things as well! Is your app calling |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-07-07 by sauerman Yep I call |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-07-07 by sauerman I found another problem w/ widgets.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-07-07 by @gfwilliams
Yes, that's because widgets are intended to be drawn. You can always add code in |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-07-07 by sauerman I think I didn't expressed it correctly:
What I meant is:
Will the code here also run when another app (e.g. the launcher) is loaded? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-07-08 by @gfwilliams
So you mean if it doesn't define the
Yes, it'll be run all the time regardless of if you need widgets. You can always define a widget, but just not put anything in the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-07-08 by sauerman
Yes, my test widget didn't define the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-07-08 by @gfwilliams Ok - I just spotted the issue, so that should be fixed in the next release |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-07-06 by sauerman
Hi Everyone,
the
Bluetooth Widget
(https://github.com/espruino/BangleApps/tree/master/apps/widbt) is creating graphic glitches in my app.The app uses
doublebuffered LcdMode
.The Widged calls
g.flip()
because it turns the screen on as a sideeffect.-Maxi
edit: The app isn't even calling
Bangle.drawWidgets()
but the Bluetooth Widget is shown.Beta Was this translation helpful? Give feedback.
All reactions