graph_gui.c
changeset 4286 5395d94a7cf2
parent 4261 28670f743746
child 4293 4b7006c1b5eb
equal deleted inserted replaced
4285:19cb745c694e 4286:5395d94a7cf2
   149 	/* draw strings on the x axis */
   149 	/* draw strings on the x axis */
   150 	if (gw->month != 0xFF) {
   150 	if (gw->month != 0xFF) {
   151 		x = gw->left + 44;
   151 		x = gw->left + 44;
   152 		y = gw->top + gw->height + 1;
   152 		y = gw->top + gw->height + 1;
   153 		j = gw->month;
   153 		j = gw->month;
   154 		k = gw->year + MAX_YEAR_BEGIN_REAL;
   154 		k = BASE_YEAR + gw->year;
   155 		i = gw->num_on_x_axis;assert(i>0);
   155 		i = gw->num_on_x_axis;assert(i>0);
   156 		do {
   156 		do {
   157 			SetDParam(2, k);
   157 			SetDParam(2, k);
   158 			SetDParam(0, j + STR_0162_JAN);
   158 			SetDParam(0, j + STR_0162_JAN);
   159 			SetDParam(1, j + STR_0162_JAN + 2);
   159 			SetDParam(1, j + STR_0162_JAN + 2);