diff --git a/src/tests/xpra/test_apps/fps.py b/src/tests/xpra/test_apps/fps.py index 022f63d5a1..c23fd92940 100755 --- a/src/tests/xpra/test_apps/fps.py +++ b/src/tests/xpra/test_apps/fps.py @@ -47,33 +47,34 @@ def do_expose_event(self, widget, event): def draw(self, widget, cr): w, h = widget.get_size() c = 0.2 - def paint_block(x, y, w, h, c, label): - R = G = B = c - cr.new_path() - cr.set_operator(cairo.OPERATOR_SOURCE) - cr.set_source_rgb(R, G, B) - cr.rectangle(x, y, w, h) - cr.fill() + def paint_block(x, y, w, h, div): + split_h = self.counter//div % h + #top half: + if split_h>0: + cr.new_path() + cr.set_operator(cairo.OPERATOR_SOURCE) + cr.set_source_rgb(c, c, c) + cr.rectangle(x, y, w, split_h) + cr.fill() + #bottom half: + if split_h