projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added texture mapping
[dosdemo]
/
src
/
polyfill.c
diff --git
a/src/polyfill.c
b/src/polyfill.c
index
634d525
..
0d1351e
100644
(file)
--- a/
src/polyfill.c
+++ b/
src/polyfill.c
@@
-19,7
+19,7
@@
void (*fillfunc[])(struct pvertex*, int) = {
polyfill_tex_gouraud
};
polyfill_tex_gouraud
};
-struct pimage pimg_fb, pimg_texture;
+struct pimage pfill_fb, pfill_tex;
void polyfill(int mode, struct pvertex *verts, int nverts)
{
void polyfill(int mode, struct pvertex *verts, int nverts)
{
@@
-46,13
+46,13
@@
void polyfill_wire(struct pvertex *verts, int nverts)
++v;
x1 = v->x >> 8;
y1 = v->y >> 8;
++v;
x1 = v->x >> 8;
y1 = v->y >> 8;
- if(clip_line(&x0, &y0, &x1, &y1, 0, 0, pimg_fb.width, pimg_fb.height)) {
+ if(clip_line(&x0, &y0, &x1, &y1, 0, 0, pfill_fb.width, pfill_fb.height)) {
draw_line(x0, y0, x1, y1, color);
}
}
x0 = verts[0].x >> 8;
y0 = verts[0].y >> 8;
draw_line(x0, y0, x1, y1, color);
}
}
x0 = verts[0].x >> 8;
y0 = verts[0].y >> 8;
- if(clip_line(&x1, &y1, &x0, &y0, 0, 0, pimg_fb.width, pimg_fb.height)) {
+ if(clip_line(&x1, &y1, &x0, &y0, 0, 0, pfill_fb.width, pfill_fb.height)) {
draw_line(x1, y1, x0, y0, color);
}
}
draw_line(x1, y1, x0, y0, color);
}
}