<p>Adds a <code>SCALE</code> option to <code>renderd.conf</code>. This way you can have retina (2x) tiles: just set <code>TILESIZE=512</code> + <code>SCALE=2</code>. This fork is currently producing tiles <a href="http://osmz.ru/vretina.html">here</a>, exactly with those options.</p>

<p>Also this PR fixes default buffer to be derived from tile size.</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/Zverik/mod_tile retina</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/openstreetmap/mod_tile/pull/82'>https://github.com/openstreetmap/mod_tile/pull/82</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>SCALE option to produce retina tiles</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/mod_tile/pull/82/files#diff-0">includes/daemon.h</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/mod_tile/pull/82/files#diff-1">renderd.conf</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/mod_tile/pull/82/files#diff-2">src/daemon.c</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/mod_tile/pull/82/files#diff-3">src/gen_tile.cpp</a>
    (6)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/mod_tile/pull/82.patch'>https://github.com/openstreetmap/mod_tile/pull/82.patch</a></li>
  <li><a href='https://github.com/openstreetmap/mod_tile/pull/82.diff'>https://github.com/openstreetmap/mod_tile/pull/82.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/mod_tile/pull/82">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/4046574__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMDUzNTE4MiwiZGF0YSI6eyJpZCI6MzY1ODkxMzl9fQ==--22feeac1c27dd9a3d3bfc1c5254004e1da4e4fca.gif" width="1" /></p>