[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/backend render_handler_agg.cpp
From: |
Udo Giacomozzi |
Subject: |
[Gnash-commit] gnash/backend render_handler_agg.cpp |
Date: |
Thu, 22 Feb 2007 10:36:37 +0000 |
CVSROOT: /cvsroot/gnash
Module name: gnash
Changes by: Udo Giacomozzi <udog> 07/02/22 10:36:37
Modified files:
backend : render_handler_agg.cpp
Log message:
Removed some commented-out debug code
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/backend/render_handler_agg.cpp?cvsroot=gnash&r1=1.58&r2=1.59
Patches:
Index: render_handler_agg.cpp
===================================================================
RCS file: /cvsroot/gnash/gnash/backend/render_handler_agg.cpp,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -b -r1.58 -r1.59
--- render_handler_agg.cpp 22 Feb 2007 10:21:02 -0000 1.58
+++ render_handler_agg.cpp 22 Feb 2007 10:36:37 -0000 1.59
@@ -16,7 +16,7 @@
-/* $Id: render_handler_agg.cpp,v 1.58 2007/02/22 10:21:02 udog Exp $ */
+/* $Id: render_handler_agg.cpp,v 1.59 2007/02/22 10:36:37 udog Exp $ */
// Original version by Udo Giacomozzi and Hannes Mayr,
// INDUNET GmbH (www.indunet.it)
@@ -963,7 +963,6 @@
rasc.filling_rule(agg::fill_even_odd);
else
rasc.filling_rule(agg::fill_non_zero);
-//printf("even_odd=%d\n",even_odd);
// tell AGG what styles are used
fcount = fill_styles.size();
@@ -1022,7 +1021,7 @@
default:
{
rgba color = cx.transform(fill_styles[fno].get_color());
-//printf("fill style %d: solid fill (%d, %d, %d, %d);\n", fno, color.m_r,
color.m_g, color.m_b, color.m_a);
+
// add the color to our self-made style handler (basically just a
list)
sh.add_color(agg::rgba8_pre(color.m_r, color.m_g, color.m_b,
color.m_a));
}
@@ -1037,7 +1036,6 @@
int current_subshape = 0;
for (pno=0; pno<pcount; pno++) {
-//printf("pno=%d\n", pno);
const path &this_path = paths[pno];
agg::path_storage path;
@@ -1061,11 +1059,9 @@
// the box.
// Flash uses value "0" for "no fill", whereas AGG uses "-1" for that.
rasc.styles(this_path.m_fill0-1, this_path.m_fill1-1);
-//printf("rasc.styles(%d, %d);\n", this_path.m_fill0-1, this_path.m_fill1-1);
// starting point of path
path.move_to(this_path.m_ax*xscale, this_path.m_ay*yscale);
-//printf("path.move_to(%f, %f)\n", this_path.m_ax*xscale,
this_path.m_ay*yscale);
ecount = this_path.m_edges.size();
edge_count += ecount;
@@ -1079,25 +1075,15 @@
path.curve3(this_edge.m_cx*xscale, this_edge.m_cy*yscale,
this_edge.m_ax*xscale, this_edge.m_ay*yscale);
-/* if (this_edge.is_straight())
- printf("path.line_to(%f, %f)\n", this_edge.m_ax*xscale,
this_edge.m_ay*yscale);
- else
- printf("path.curve3(%f, %f, %f, %f)\n", this_edge.m_cx*xscale,
this_edge.m_cy*yscale,
- this_edge.m_ax*xscale, this_edge.m_ay*yscale);
-*/
-
-
}
// add path to the compound rasterizer
rasc.add_path(curve);
-//printf("rasc.add_path(curve);\n");
}
//log_msg("%d edges\n", edge_count);
// render!
-//printf("agg::render_scanlines_compound_layered(rasc, sl, rbase, alloc,
sh);\n");
agg::render_scanlines_compound_layered(rasc, sl, rbase, alloc, sh);
} // draw_shape
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/backend render_handler_agg.cpp,
Udo Giacomozzi <=