diff options
author | Ole Loots <ole@monochrom.net> | 2012-11-22 00:10:55 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-11-22 00:10:55 +0100 |
commit | ccdab30c9a93989df986def422c1ff68d0b80a18 (patch) | |
tree | 3febf906b5ccb522c460caf411e21c937fcdabc3 /atari/treeview.c | |
parent | 0672d5e2c9e66fc12311ad41a566e56cee30f7e3 (diff) | |
download | netsurf-ccdab30c9a93989df986def422c1ff68d0b80a18.tar.gz netsurf-ccdab30c9a93989df986def422c1ff68d0b80a18.tar.bz2 |
Completet scroll preprocessing, Hotlist fully works.
Diffstat (limited to 'atari/treeview.c')
-rwxr-xr-x | atari/treeview.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/atari/treeview.c b/atari/treeview.c index 44a863096..6b45fb0f3 100755 --- a/atari/treeview.c +++ b/atari/treeview.c @@ -453,7 +453,7 @@ void atari_treeview_request_redraw(int x, int y, int w, int h, void *pw) tv->rdw_area.g_w = ( oldx1 > newx1 ) ? oldx1 - tv->rdw_area.g_x : newx1 - tv->rdw_area.g_x; tv->rdw_area.g_h = ( oldy1 > newy1 ) ? oldy1 - tv->rdw_area.g_y : newy1 - tv->rdw_area.g_y; } - dbg_grect("atari_treeview_request_redraw", &tv->rdw_area); + //dbg_grect("atari_treeview_request_redraw", &tv->rdw_area); } } @@ -478,10 +478,10 @@ void atari_treeview_resized(struct tree *tree, int width, int height, void *pw) tv->extent.y = height; struct guiwin_scroll_info_s *slid = guiwin_get_scroll_info(tv->window); guiwin_get_grect(tv->window, GUIWIN_AREA_CONTENT, &area); - slid->x_pos_max = (width/slid->x_unit_px);//-(area.g_w/slid->x_unit_px)+1; - slid->y_pos_max = (height/slid->y_unit_px);//-(area.g_h/slid->y_unit_px)+1; - printf("units content: %d, units viewport: %d\n", (height/slid->y_unit_px), - (area.g_h/slid->y_unit_px)); + slid->x_units = (width/slid->x_unit_px); + slid->y_units = (height/slid->y_unit_px); + /*printf("units content: %d, units viewport: %d\n", (height/slid->y_unit_px), + (area.g_h/slid->y_unit_px));*/ guiwin_update_slider(tv->window, GUIWIN_VH_SLIDER); } } |