Author: mir3x
Date: Thu Feb  2 20:44:45 2017
New Revision: 34932

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

See patch #8093


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

Modified: branches/S3_0/client/tilespec.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/client/tilespec.c?rev=34932&r1=34931&r2=34932&view=diff
==============================================================================
--- branches/S3_0/client/tilespec.c     (original)
+++ branches/S3_0/client/tilespec.c     Thu Feb  2 20:44:45 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: branches/S3_0/client/tilespec.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/client/tilespec.h?rev=34932&r1=34931&r2=34932&view=diff
==============================================================================
--- branches/S3_0/client/tilespec.h     (original)
+++ branches/S3_0/client/tilespec.h     Thu Feb  2 20:44:45 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

Reply via email to