summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2010-12-12 13:01:27 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2010-12-12 13:01:27 +0000
commita7240fd6a94fe5cb98cfbf53d6caf15b12628cc1 (patch)
tree4664c15cd3c429670b8993992251c75fa512be1e
parent4c5a0d845c05391cc7d6a124580af5563b151e77 (diff)
downloadnetsurf-a7240fd6a94fe5cb98cfbf53d6caf15b12628cc1.tar.gz
netsurf-a7240fd6a94fe5cb98cfbf53d6caf15b12628cc1.tar.bz2
Fix TREE_ICON_SIZE to match size of actual icons. Fix clip rectangle for icon redraw.
svn path=/trunk/netsurf/; revision=11034
-rw-r--r--desktop/tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/tree.c b/desktop/tree.c
index 9be47a47e..b8f50287c 100644
--- a/desktop/tree.c
+++ b/desktop/tree.c
@@ -42,7 +42,7 @@
#define MAXIMUM_URL_LENGTH 1024
-#define TREE_ICON_SIZE 16
+#define TREE_ICON_SIZE 17
#define NODE_INSTEP 20
#define TREE_LINE_HEIGHT 20
#define FURNITURE_COLOUR 0x888888
@@ -1529,10 +1529,10 @@ static void tree_draw_node_element(struct tree *tree,
CONTENT_STATUS_READY ||
content_get_status(icon) ==
CONTENT_STATUS_DONE)) {
- content_redraw(icon , x, y + 3,
+ content_redraw(icon , x, y + 2,
TREE_ICON_SIZE, TREE_ICON_SIZE,
x, y, x + TREE_ICON_SIZE,
- y + TREE_ICON_SIZE, 1, 0);
+ y + 2 + TREE_ICON_SIZE, 1, 0);
}
x += NODE_INSTEP;