From: Francois B <mrs...@us...> - 2004-07-20 23:24:17
|
Update of /cvsroot/openneo/openneo/apps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29365 Modified Files: list.h list.c Log Message: Can't scroll more than one line at a time for now Index: list.h =================================================================== RCS file: /cvsroot/openneo/openneo/apps/list.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** list.h 26 Jun 2004 14:54:35 -0000 1.2 --- list.h 20 Jul 2004 23:23:56 -0000 1.3 *************** *** 14,21 **** #include "flags.h" ! #define LIST_NO_ERROR 0 ! #define LIST_EXIT -1 ! #define LIST_LOW_MEMORY -2 ! #define LIST_BUFFER_FULL -4 #define LS_LOOPOVER 1 --- 14,22 ---- #include "flags.h" ! #define LIST_NO_ERROR 0x70000000 ! #define LIST_EXIT 0x70000001 ! #define LIST_RELOAD_CACHE 0x70000002 ! ! #define LIST_BUFFER_FULL 0xC0000001 #define LS_LOOPOVER 1 Index: list.c =================================================================== RCS file: /cvsroot/openneo/openneo/apps/list.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** list.c 9 Jul 2004 22:25:06 -0000 1.4 --- list.c 20 Jul 2004 23:23:56 -0000 1.5 *************** *** 39,43 **** unsigned long cache_start; //First item cached ! short cache_count; //Number of items cached short cache_cursor; //Index in cache of cursor short cache_first_displayed; //Index of first item displayed --- 39,43 ---- unsigned long cache_start; //First item cached ! short cache_count; //Number of items cached short cache_cursor; //Index in cache of cursor short cache_first_displayed; //Index of first item displayed *************** *** 256,260 **** rc = plv->p_onbutton( plv, button, (unsigned long)(data.cache_start + data.cache_cursor), &data.item_array[data.cache_cursor], &next_state ); ! if( rc == LIST_EXIT ) done = true; else if( rc == FLAGS_REDRAW_ALL ) --- 256,265 ---- rc = plv->p_onbutton( plv, button, (unsigned long)(data.cache_start + data.cache_cursor), &data.item_array[data.cache_cursor], &next_state ); ! if( rc == LIST_RELOAD_CACHE ) { ! ! rc = plv->p_cachesection( plv, (unsigned int)data.cache_start, (unsigned int)plv->max_cached ); ! update = list_scroll( plv, &data, 1 ); ! } ! else if( rc == LIST_EXIT ) done = true; else if( rc == FLAGS_REDRAW_ALL ) *************** *** 293,297 **** bool list_scroll( struct list* plv, struct list_data* pdata, int dir ) { ! int step = global_settings.scroll_step; //Check if we need to update cache --- 298,302 ---- bool list_scroll( struct list* plv, struct list_data* pdata, int dir ) { ! int step = 1; //Check if we need to update cache |