Bug #411
closedFlicker on refresh of analog clock
100%
Description
There is a flickering of the analog clock every now and then. It looks like some bit of double-buffering is not working correctly under cairo. I need to find a way to fix this so the clock doesn't flicker.
Updated by Hammel about 10 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 10
Take a look at this discussion on cairo animation.
Updated by Hammel about 10 years ago
The first thing I see here is not that I need separate drawing threads (the drawing operations are very primitive and have a 1FPS framerate, which is highly tolerable) but that I need to draw into a pixmap instead of directly onto the drawing area widget.
So, first step: switch to a pixmap-based cairo paint operation.
Updated by Hammel about 10 years ago
- Status changed from In Progress to Closed
- % Done changed from 10 to 100
Fixed screen flicker by switching cairo operations to a pixmap and copying from that pixmap during expose events for the widget. Also fixed ownership of piclock binary on install to be root.root.
Tested on target, changes committed and pushed upstream.
Closing issue.