Project

General

Profile

Actions

Bug #411

closed

Flicker on refresh of analog clock

Added by Hammel about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
Start date:
13 Dec 2014
Due date:
% Done:

100%

Estimated time:
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.

Actions #1

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.

Actions #2

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.

Actions #3

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.

Actions

Also available in: Atom PDF