Follow-up Comment #11, patch #2715 (project freeciv):

OK, in the hindsight, it was painfully obvious (and - in a way - already
hinted at in comment 5).

It's actually just 4 lines.

When creating tmpsurf, between cairo_create and cairo_set_source_surface, put
following:
  cairo_save(cr);
  cairo_set_operator(cr, CAIRO_OPERATOR_CLEAR);
  cairo_paint(cr);
  cairo_restore(cr);

That's all.

Now, talking about funny things:
for the moment, my patch leaks like crazy, but looking at 'ps -ly' right
after loading a rather large saved game ("xsize",100,100;"ysize",200,200):
original 2.3.0:
S  1001  2426  1626 17  80   0 165264 85986 poll_s pts/7   00:00:11
freeciv-gtk2
with my patch:
S  1001  2394  1626  4  80   0 105600 71072 poll_s pts/7   00:00:09
freeciv-gtk2

If I could plug the leak(s) and still retain such ratio, it would be a
significant improvement.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?2715>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to