Author: mir3x Date: Thu Feb 2 20:44:22 2017 New Revision: 34931 URL: http://svn.gna.org/viewcvs/freeciv?rev=34931&view=rev Log: Added function to retrieve scale of current tileset
See patch #8093 Modified: trunk/client/tilespec.c trunk/client/tilespec.h Modified: trunk/client/tilespec.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/tilespec.c?rev=34931&r1=34930&r2=34931&view=diff ============================================================================== --- trunk/client/tilespec.c (original) +++ trunk/client/tilespec.c Thu Feb 2 20:44:22 2017 @@ -866,6 +866,14 @@ } /**************************************************************************** + Returns tileset scale +****************************************************************************/ +float tileset_scale(const struct tileset *t) +{ + return tileset->scale; +} + +/**************************************************************************** Return the small sprite height of the current tileset. The small sprites are used for various theme graphics (e.g., citymap citizens/specialists as well as panel indicator icons). Modified: trunk/client/tilespec.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/tilespec.h?rev=34931&r1=34930&r2=34931&view=diff ============================================================================== --- trunk/client/tilespec.h (original) +++ trunk/client/tilespec.h Thu Feb 2 20:44:22 2017 @@ -434,6 +434,7 @@ int tileset_small_sprite_height(const struct tileset *t); int tileset_citybar_offset_y(const struct tileset *t); int tileset_tilelabel_offset_y(const struct tileset *t); +float tileset_scale(const struct tileset *t); const char *tileset_main_intro_filename(const struct tileset *t); int tileset_num_city_colors(const struct tileset *t); void tileset_use_preferred_theme(const struct tileset *t); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits