0

biomes are now murky *and* smooth

closes issue #708

Props to mkor for taking advantage of the existing average loop, and
CounterPillow for sussing out the correct biome multiplication
color. This commit is just a teensy bit more future-proof.
This commit is contained in:
Aaron Griffith
2012-05-06 20:19:38 -04:00
parent 06b6af5dbc
commit 34e5ddf620
3 changed files with 50 additions and 41 deletions

View File

@@ -24,11 +24,6 @@
#include "overviewer.h"
/* like (a * b + 127) / 255), but much faster on most platforms
from PIL's _imaging.c */
#define MULDIV255(a, b, tmp) \
(tmp = (a) * (b) + 128, ((((tmp) >> 8) + (tmp)) >> 8))
typedef struct {
PyObject_HEAD
Imaging image;