for(y=0;y<h;y++) {
for(x=0;x<w;x++) {
x1 = (x << FRAC_BITS) + dx;
- y1 = (y << FRAC_BITS) + dx;
+ y1 = (y << FRAC_BITS) + dy;
r = ((y1 * 7) >> FRAC_BITS) & 0xff;
g = (((x1 + y1) * 9) >> FRAC_BITS) & 0xff;
b = ((x1 * 5) >> FRAC_BITS) & 0xff;
exit(1);
}
-#if 0
- for(i=0;i<256;i++)
- printf("cos(%d)=%d\n", i, int_cos(i));
-#endif
-
w = DEFAULT_WIDTH;
h = DEFAULT_HEIGHT;