Bug #411

Flicker on refresh of analog clock

Added by Hammel almost 3 years ago. Updated almost 3 years ago.

Status:ClosedStart date:13 Dec 2014
Priority:UrgentDue date:
Assignee:Hammel% Done:

100%

Category:-
Target version:PiBox - 0.10.0
Severity:03 - Medium

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.

Associated revisions

Revision af1098de
Added by Hammel almost 3 years ago

RM #411: 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.

Revision af1098de
Added by Hammel almost 3 years ago

RM #411: 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.

History

#1 Updated by Hammel almost 3 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10

Take a look at this discussion on cairo animation.

#2 Updated by Hammel almost 3 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.

#3 Updated by Hammel almost 3 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.

Also available in: Atom PDF