projects
/
gbajam22
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rasterized clamp top/bottom
[gbajam22]
/
src
/
polyfill.c
diff --git
a/src/polyfill.c
b/src/polyfill.c
index
5b70987
..
8b01ea1
100644
(file)
--- a/
src/polyfill.c
+++ b/
src/polyfill.c
@@
-87,6
+87,9
@@
void polyfill_flat(struct pvertex *varr, int vnum, unsigned char col)
}
}
+ if(top < 0) top = 0;
+ if(bot >= fbheight) bot = fbheight - 1;
+
fbptr = fb + top * fbwidth;
for(i=top; i<=bot; i++) {
start = scantab[0][i];