Author: mir3x
Date: Thu Feb  2 20:44:55 2017
New Revision: 34933

URL: http://svn.gna.org/viewcvs/freeciv?rev=34933&view=rev
Log:
Added function to retrieve scale of current tileset

See patch #8093


Modified:
    branches/S2_6/client/tilespec.c
    branches/S2_6/client/tilespec.h

Modified: branches/S2_6/client/tilespec.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/tilespec.c?rev=34933&r1=34932&r2=34933&view=diff
==============================================================================
--- branches/S2_6/client/tilespec.c     (original)
+++ branches/S2_6/client/tilespec.c     Thu Feb  2 20:44:55 2017
@@ -855,6 +855,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: branches/S2_6/client/tilespec.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/tilespec.h?rev=34933&r1=34932&r2=34933&view=diff
==============================================================================
--- branches/S2_6/client/tilespec.h     (original)
+++ branches/S2_6/client/tilespec.h     Thu Feb  2 20:44:55 2017
@@ -396,6 +396,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);
 const char *tileset_mini_intro_filename(const struct tileset *t);
 int tileset_num_city_colors(const struct tileset *t);


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

Reply via email to