[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog server/text.cpp
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog server/text.cpp |
Date: |
Tue, 08 Aug 2006 10:16:25 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/08/08 10:16:25
Modified files:
. : ChangeLog
server : text.cpp
Log message:
* server/text.cpp: wrapper log_parse calls in IF_VERBOSE_PARSE.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.603&r2=1.604
http://cvs.savannah.gnu.org/viewcvs/gnash/server/text.cpp?cvsroot=gnash&r1=1.21&r2=1.22
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.603
retrieving revision 1.604
diff -u -b -r1.603 -r1.604
--- ChangeLog 8 Aug 2006 10:14:21 -0000 1.603
+++ ChangeLog 8 Aug 2006 10:16:25 -0000 1.604
@@ -1,5 +1,6 @@
2006-08-08 Sandro Santilli <address@hidden>
+ * server/text.cpp: wrapper log_parse calls in IF_VERBOSE_PARSE.
* libbase/log.h: fixed IF_VERBOSE_PARSE macro
2006-08-08 Sandro Santilli <address@hidden>
Index: server/text.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/text.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- server/text.cpp 7 Jun 2006 03:03:21 -0000 1.21
+++ server/text.cpp 8 Aug 2006 10:16:25 -0000 1.22
@@ -189,7 +189,9 @@
int glyph_bits = in->read_u8();
int advance_bits = in->read_u8();
+ IF_VERBOSE_PARSE(
log_parse("begin text records\n");
+ );
bool last_record_was_style_change = false;
@@ -201,7 +203,9 @@
if (first_byte == 0)
{
// This is the end of the text records.
+ IF_VERBOSE_PARSE(
log_parse("end text records\n");
+ );
break;
}
@@ -218,13 +222,17 @@
bool has_y_offset = (first_byte >> 1) & 1;
bool has_x_offset = (first_byte >> 0) & 1;
+ IF_VERBOSE_PARSE(
log_parse(" text style change\n");
+ );
if (has_font)
{
uint16_t font_id =
in->read_u16();
style.m_font_id = font_id;
+ IF_VERBOSE_PARSE(
log_parse(" has_font: font id = %d\n",
font_id);
+ );
}
if (has_color)
{
@@ -237,13 +245,17 @@
assert(tag_type == 33);
style.m_color.read_rgba(in);
}
+ IF_VERBOSE_PARSE(
log_parse(" has_color\n");
+ );
}
if (has_x_offset)
{
style.m_has_x_offset = true;
style.m_x_offset = in->read_s16();
+ IF_VERBOSE_PARSE(
log_parse(" has_x_offset = %g\n",
style.m_x_offset);
+ );
}
else
{
@@ -254,7 +266,9 @@
{
style.m_has_y_offset = true;
style.m_y_offset = in->read_s16();
+ IF_VERBOSE_PARSE(
log_parse(" has_y_offset = %g\n",
style.m_y_offset);
+ );
}
else
{
@@ -264,7 +278,9 @@
if (has_font)
{
style.m_text_height = in->read_u16();
+ IF_VERBOSE_PARSE(
log_parse(" text_height = %g\n",
style.m_text_height);
+ );
}
}
else
@@ -285,7 +301,9 @@
m_text_glyph_records.back().m_style = style;
m_text_glyph_records.back().read(in,
glyph_count, glyph_bits, advance_bits);
+ IF_VERBOSE_PARSE(
log_parse(" glyph_records: count = %d\n",
glyph_count);
+ );
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog server/text.cpp,
Sandro Santilli <=