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

                 Summary: Gtk and SDL clients do not refresh (all) indicators
when the tileset changes
                 Project: Freeciv
            Submitted by: louis94
            Submitted on: jeu. 26 févr. 2015 23:47:57 UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:

When the tileset changes, the indicator sprites may change too. This case is
not handled by the said clients.

The tax indicators may be refreshed properly (need to check), but the global
warming, government, nuclear winter and science boxes don't change immediately
(they change only when they are refreshed).

The missing code is (taken from the Xaw client):

set_indicator_icons(client_research_sprite(),
                    client_warming_sprite(),
                    client_cooling_sprite(),
                    client_government_sprite());


(This should refresh all sprites, but maybe one will need to free the old
ones. I don't know much about clients other than Qt.)
These lines may be added to tileset_changed(void) in mapview.c.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


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

Reply via email to