Skip to content

Commit

Permalink
Fixed error reported by Guardian9978
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Sep 9, 2010
1 parent d1f6bf0 commit cb95411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -140,7 +140,7 @@ int write_image(settings_t *s, const char *filename, Image &img, const char *tit
row = (png_bytep) malloc(4 * img.get_width() * sizeof(png_byte));

int x, y;
for (y=0 ; y<img.get_width(); y++) {
for (y=0 ; y<img.get_height(); y++) {
for (x=0 ; x<img.get_width(); x++) {
Color c = img.get_pixel(x, y);
row[0 + x*4] = c.r;
Expand Down

0 comments on commit cb95411

Please sign in to comment.