graph_gui.c
changeset 970 24abd02b1092
parent 867 dffd33233237
child 979 11ea18598e16
equal deleted inserted replaced
969:862685f513ca 970:24abd02b1092
   140 	/* draw strings on the x axis */
   140 	/* draw strings on the x axis */
   141 	if (gw->month != 0xFF) {
   141 	if (gw->month != 0xFF) {
   142 		x = gw->left + 44;
   142 		x = gw->left + 44;
   143 		y = gw->top + gw->height + 1;
   143 		y = gw->top + gw->height + 1;
   144 		j = gw->month;
   144 		j = gw->month;
   145 		k = gw->year + 1920;
   145 		k = gw->year + MAX_YEAR_BEGIN_REAL;
   146 		i = gw->num_on_x_axis;assert(i>0);
   146 		i = gw->num_on_x_axis;assert(i>0);
   147 		do {
   147 		do {
   148 			SetDParam(2, k);
   148 			SetDParam(2, k);
   149 			SetDParam(0, j + STR_0162_JAN);
   149 			SetDParam(0, j + STR_0162_JAN);
   150 			SetDParam(1, j + STR_0162_JAN + 2);
   150 			SetDParam(1, j + STR_0162_JAN + 2);