URL:
  <http://gna.org/patch/?5448>

                 Summary: Rearrange canvas cairo drawing
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Fri 21 Nov 2014 07:58:26 AM EET
                Category: client-gtk-3.0
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.6.0

    _______________________________________________________

Details:

Cairo drawing in gtk3-client canvas.c is not sensible at all.
- cairo_scale() is used for the final paint operations only, and all the math
before that is in our own code.
- Destination area is clipped and full cairo_paint() is used towards it when
we could use cairo_fill() rectangle

Cleanup to these attached:
- Call cairo_scale() earlier, and let cairo to figure out the math (which was
broken anyway)
- Instead of cairo_clip() + cairo_paint() use cairo_fill().




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 21 Nov 2014 07:58:26 AM EET  Name: CairoNoClip.patch  Size: 2kB  
By: cazfi

<http://gna.org/patch/download.php?file_id=22941>

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to