* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
date_t cur = {YEAR, MONTH, DAY-1, 0, 0};
date_t end = {YEAR, MONTH, DAY, 24, 0};
add_days(&end.year, &end.month, &end.day, days);
date_t cur = {YEAR, MONTH, DAY-1, 0, 0};
date_t end = {YEAR, MONTH, DAY, 24, 0};
add_days(&end.year, &end.month, &end.day, days);
mvwprintw(win, row-line, 0, "%04d-%02d-%02d",
next.year, next.month+1, next.day+1);
mvwprintw(win, row-line, 13, "%s, %s %d",
day_to_string(wday), month_to_string(next.month), next.day);
mvwprintw(win, row-line, 0, "%04d-%02d-%02d",
next.year, next.month+1, next.day+1);
mvwprintw(win, row-line, 13, "%s, %s %d",
day_to_string(wday), month_to_string(next.month), next.day);
- event_line(win, event, row++-line, 4, COLS-2, 1);
+ event_line(win, event, row++-line, 4, COLS-4, SHOW_DETAILS);
if (event->name && event->desc)
mvwprintw(win, row++-line, 14, "%s", event->desc);
cur = next;
if (event->name && event->desc)
mvwprintw(win, row++-line, 14, "%s", event->desc);
cur = next;