Skip to content

Commit 95dd3bf

Browse files
committed
add windows dll, exe
1 parent b11952f commit 95dd3bf

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*.pyc
66
main
77
*.so
8+
*.o
9+
*.obj
810
.gdb_history
911
build/
1012
c.raw

create_fractal.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
int create_fractal(Img img, int iters) {
44
float pixel_size_x = 3.0 / img.width;
55
float pixel_size_y = 2.0 / img.height;
6-
int x, y;
6+
int x, y, ret=0;
77
for (y=0; y < img.height; y++) {
88
float imag = y * pixel_size_y - 1;
99
int yy = y * img.width;
1010
for (x=0; x < img.width; x++) {
1111
float real = x * pixel_size_x - 2;
1212
unsigned char color;
13-
int ret = mandel(real, imag, iters, &color);
13+
ret += mandel(real, imag, iters, &color);
1414
img.data[yy + x] = color;
1515
}
1616
}
17+
return ret;
1718
}

create_fractal32.dll

54 KB
Binary file not shown.

create_fractal64.dll

54.5 KB
Binary file not shown.

main.exe

70 KB
Binary file not shown.

0 commit comments

Comments
 (0)