[rendering] Do not write duplicated hashes...
[wikipediardware.git] / host-tools / rendering / patches / 0018-prepare-for-monochrome.patch
blob04ac251ee7bc9b38f77310dbf97f53241e16f169
1 From 2456e75af2824b0861779a2660eea9bbe8ed17c1 Mon Sep 17 00:00:00 2001
2 From: Holger Hans Peter Freyther <zecke@selfish.org>
3 Date: Thu, 5 Mar 2009 20:32:37 +0800
4 Subject: [PATCH] prepare for monochrome...
6 ---
7 WebKitTools/GtkLauncher/main.c | 11 +++++++----
8 1 files changed, 7 insertions(+), 4 deletions(-)
10 diff --git a/WebKitTools/GtkLauncher/main.c b/WebKitTools/GtkLauncher/main.c
11 index d2b8c42..1fa08fa 100644
12 --- a/WebKitTools/GtkLauncher/main.c
13 +++ b/WebKitTools/GtkLauncher/main.c
14 @@ -71,11 +71,14 @@ static gint dumped_glyphs = 0;
15 glyph->width, glyph->height); \
16 gchar* data = g_string_free(header, FALSE); \
17 g_byte_array_append(content_##var, data, strlen(data)); \
18 - int row = 0; \
19 + int row = 0, width; \
20 for (row = 0; row < glyph->height; ++row) { \
21 - g_byte_array_append(content_##var, \
22 - glyph->bitmap + (row*glyph->glyph_pitch),\
23 - (guint)glyph->width); \
24 + unsigned char* row_start = glyph->bitmap + (row*glyph->glyph_pitch); \
25 + for (width = 0; width < glyph->width; ++width) { \
26 + g_byte_array_append(content_##var, \
27 + row_start + width, \
28 + 1); \
29 + } \
30 } \
31 gchar* c_path_##var = g_string_free(path_##var, FALSE); \
32 int length = content_##var->len; \
33 --
34 1.5.6.3