git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0d5377b
)
added some comments
author
kramm
<kramm>
Sun, 6 Nov 2005 22:52:41 +0000
(22:52 +0000)
committer
kramm
<kramm>
Sun, 6 Nov 2005 22:52:41 +0000
(22:52 +0000)
lib/modules/swfrender.c
patch
|
blob
|
history
diff --git
a/lib/modules/swfrender.c
b/lib/modules/swfrender.c
index
f17a1a2
..
b090cdd
100644
(file)
--- a/
lib/modules/swfrender.c
+++ b/
lib/modules/swfrender.c
@@
-536,6
+536,7
@@
static void fill_clip(RGBA*line, int*z, int y, int x1, int x2, U32 depth)
} while(++x<x2);
}
} while(++x<x2);
}
+
static void fill_solid(RGBA*line, int*z, int y, int x1, int x2, RGBA col, U32 depth)
{
int x = x1;
static void fill_solid(RGBA*line, int*z, int y, int x1, int x2, RGBA col, U32 depth)
{
int x = x1;
@@
-854,11
+855,14
@@
void swf_Process(RENDERBUF*dest, U32 clipdepth)
endx = 0;
if(clipdepth) {
endx = 0;
if(clipdepth) {
- /* for clipping, the inverse is filled */
+ /* for clipping, the inverse is filled
+ TODO: lastx!=startx only at the start of the loop,
+ so this might be moved up
+ */
fill_clip(line, zline, y, lastx, startx, clipdepth);
}
change_state(y, &fillstate, p);
fill_clip(line, zline, y, lastx, startx, clipdepth);
}
change_state(y, &fillstate, p);
-
+
fill(dest, line, zline, y, startx, endx, &fillstate, clipdepth);
/* if(y == 0 && startx == 232 && endx == 418) {
printf("ymin=%d ymax=%d\n", i->ymin, i->ymax);
fill(dest, line, zline, y, startx, endx, &fillstate, clipdepth);
/* if(y == 0 && startx == 232 && endx == 418) {
printf("ymin=%d ymax=%d\n", i->ymin, i->ymax);
@@
-873,6
+877,7
@@
void swf_Process(RENDERBUF*dest, U32 clipdepth)
break;
}
if(clipdepth) {
break;
}
if(clipdepth) {
+ /* TODO: is lastx *ever* != i->width2 here? */
fill_clip(line, zline, y, lastx, i->width2, clipdepth);
}
free_layers(&fillstate);
fill_clip(line, zline, y, lastx, i->width2, clipdepth);
}
free_layers(&fillstate);