Add image writing, and revert the buffer flip

This commit is contained in:
Steven Robertson
2011-05-02 19:30:14 +00:00
parent 1dad09fc03
commit 972cd9f9ea
2 changed files with 6 additions and 3 deletions

View File

@ -109,7 +109,7 @@ void iter(mwc_st *msts, const iter_info *infos, float *accbuf, float *denbuf) {
}
// TODO: dither?
int i = ((int)((1.0f - y) * 255.0f) * 512)
int i = ((int)((y + 1.0f) * 255.0f) * 512)
+ (int)((x + 1.0f) * 255.0f);
// since info was declared const, C++ barfs unless it's loaded first