mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 23:07:59 +00:00
chart...
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@125 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
@@ -213,17 +213,12 @@ static gdImagePtr draw_image(gdImagePtr img){
|
||||
temp_y1 = img_cfg.height - offset_y_bottom;
|
||||
}
|
||||
for (; pix_list; pix_list = pix_list->next){
|
||||
i = 1;
|
||||
temp_x1 = pix_list->x_pix_coord + offset_x_left;
|
||||
if (pix_list->next != NULL){
|
||||
temp_x2 = pix_list->next->x_pix_coord + offset_x_left;
|
||||
if(pix_list->next->no_line){
|
||||
i = 0;
|
||||
}
|
||||
} else {
|
||||
temp_x2 = offset_x_left + dia_width;
|
||||
}
|
||||
if(i)
|
||||
gdImageFilledRectangle(img, temp_x1 + 3, (offset_y_top + pix_list->y_pix_coord), temp_x2 - 3 , temp_y1 , val_line_c);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user