Fix TREE_ICON_SIZE to match size of actual icons. Fix clip rectangle for icon redraw.

svn path=/trunk/netsurf/; revision=11034
This commit is contained in:
Michael Drake 2010-12-12 13:01:27 +00:00
parent 4c5a0d845c
commit a7240fd6a9
1 changed files with 3 additions and 3 deletions

View File

@ -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;