URL:
  <http://gna.org/bugs/?21557>

                 Summary: [Patch] GTK2 - Map canvas resizing to bigger, but
less than tile size results in visual glitches
                 Project: Freeciv
            Submitted by: dadatis
            Submitted on: Wed 29 Jan 2014 09:50:35 PM GMT
                Category: client
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.5.99
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 

    _______________________________________________________

Details:

Using GTK2, when the last unit is given its final command then no more units
are focused (just before I press end of turn).

At this point with my screen setup the map canvas height automatically resizes
itself to slightly bigger, which means that the height goes from 517 pixels to
531 pixels (less than a tile size).

Because redrawing was not forced in this case, there appeared visual glitches
at the bottom of the map canvas, as seen in the attached picture.

------------
  Fix
------------

See the attached patch.
This fixes the issue by forcing redraw whenever the map view pixel size
changes.

Would it perhaps be even better to force redraw only when the size grows
bigger? 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 29 Jan 2014 09:50:36 PM GMT  Name: map_canvas_resized_redraw.patch 
Size: 506B   By: dadatis

<http://gna.org/bugs/download.php?file_id=19893>
-------------------------------------------------------
Date: Wed 29 Jan 2014 09:50:36 PM GMT  Name: end_turn_gtk2_glitch.png  Size:
128kB   By: dadatis

<http://gna.org/bugs/download.php?file_id=19894>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21557>

_______________________________________________
  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