From 1cc6e186f06f98c76b43f94a787abaec7f024cd7 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 15 Aug 2006 16:49:48 +0000 Subject: (svn r5918) -Cleanup: rename ConvertDayToYMD/ConvertYMDToDay as they really convert a Date to/from a YearMonthDay. -Cleanup: swap ConvertDateToYMD's parameters to make the order consistent with the name of the function. --- main_gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main_gui.c') diff --git a/main_gui.c b/main_gui.c index f9f81c299..3b105e351 100644 --- a/main_gui.c +++ b/main_gui.c @@ -1004,7 +1004,7 @@ static void ToolbarScenDateBackward(Window *w) HandleButtonClick(w, 6); InvalidateWidget(w, 5); - if (_date > MinDate) SetDate(ConvertYMDToDay(_cur_year - 1, 0, 1)); + if (_date > MinDate) SetDate(ConvertYMDToDate(_cur_year - 1, 0, 1)); } _left_button_clicked = false; } @@ -1016,7 +1016,7 @@ static void ToolbarScenDateForward(Window *w) HandleButtonClick(w, 7); InvalidateWidget(w, 5); - if (_date < MaxDate) SetDate(ConvertYMDToDay(_cur_year + 1, 0, 1)); + if (_date < MaxDate) SetDate(ConvertYMDToDate(_cur_year + 1, 0, 1)); } _left_button_clicked = false; } -- cgit v1.2.3-70-g09d2