Update of /cvsroot/perfparse/_perfparse/cgi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11190/cgi
Modified Files:
perfchart.c
Log Message:
Fixed bug where part of the grid is painted on the border.
Index: perfchart.c
===================================================================
RCS file: /cvsroot/perfparse/_perfparse/cgi/perfchart.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** perfchart.c 27 Apr 2007 21:20:06 -0000 1.9
--- perfchart.c 31 May 2007 14:58:31 -0000 1.10
***************
*** 3,7 ****
* perfchart.c - Displays graphs of data.
*
! * Copyright (c) 2004 Ben Clewett
*
* $Id$
--- 3,7 ----
* perfchart.c - Displays graphs of data.
*
! * Copyright (c) 2004-2007 Ben Clewett, Florian Gleixner
*
* $Id$
***************
*** 1010,1014 ****
for (t = tFromMidnight + (3600 * 24); t <= tTo; t += (3600 * 24)) {
x = xTranslate(t);
! gdImageLine(graph, x, iBorder, x, iHeight - iBotBorder - 1, grey2);
}
--- 1010,1015 ----
for (t = tFromMidnight + (3600 * 24); t <= tTo; t += (3600 * 24)) {
x = xTranslate(t);
! if (x > iBorder * 2)
! gdImageLine(graph, x, iBorder, x, iHeight - iBotBorder - 1, grey2);
}
|