graph_gui.c
changeset 2436 7d5df545bd5d
parent 2261 d3554e5d3e86
child 2458 dbaf5dffbb28
equal deleted inserted replaced
2435:9b9d43988058 2436:7d5df545bd5d
    42 	uint64 cost[GRAPH_NUM][24]; // last 2 years
    42 	uint64 cost[GRAPH_NUM][24]; // last 2 years
    43 } GraphDrawer;
    43 } GraphDrawer;
    44 
    44 
    45 #define INVALID_VALUE 0x80000000
    45 #define INVALID_VALUE 0x80000000
    46 
    46 
    47 static void DrawGraph(GraphDrawer *gw)
    47 static void DrawGraph(const GraphDrawer *gw)
    48 {
    48 {
    49 
    49 
    50 	int i,j,k;
    50 	int i,j,k;
    51 	uint x,y,old_x,old_y;
    51 	uint x,y,old_x,old_y;
    52 	int color;
    52 	int color;
    53 	int right, bottom;
    53 	int right, bottom;
    54 	int num_x, num_dataset;
    54 	int num_x, num_dataset;
    55 	uint64 *row_ptr, *col_ptr;
    55 	const uint64 *row_ptr, *col_ptr;
    56 	int64 mx;
    56 	int64 mx;
    57 	int adj_height;
    57 	int adj_height;
    58 	uint64 y_scaling, tmp;
    58 	uint64 y_scaling, tmp;
    59 	int64 value;
    59 	int64 value;
    60 	int64 cur_val;
    60 	int64 cur_val;