src/graph_gui.cpp
changeset 7923 91982bd3c549
parent 7922 a7e266f966d9
child 7928 63e18de69e50
equal deleted inserted replaced
7922:a7e266f966d9 7923:91982bd3c549
   137 
   137 
   138 				if (datapoint != INVALID_DATAPOINT) {
   138 				if (datapoint != INVALID_DATAPOINT) {
   139 					/* For now, if the graph has negative values the scaling is
   139 					/* For now, if the graph has negative values the scaling is
   140 					 * symmetrical about the x axis, so take the absolute value
   140 					 * symmetrical about the x axis, so take the absolute value
   141 					 * of each data point. */
   141 					 * of each data point. */
   142 					highest_value = max(highest_value, myabs(datapoint));
   142 					highest_value = max(highest_value, abs(datapoint));
   143 				}
   143 				}
   144 			}
   144 			}
   145 		}
   145 		}
   146 	}
   146 	}
   147 
   147