From a7240fd6a94fe5cb98cfbf53d6caf15b12628cc1 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 12 Dec 2010 13:01:27 +0000 Subject: Fix TREE_ICON_SIZE to match size of actual icons. Fix clip rectangle for icon redraw. svn path=/trunk/netsurf/; revision=11034 --- desktop/tree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'desktop') 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; -- cgit v1.2.3