From 3393a0510a990ef61044a1f3dbd97950e5532f33 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 29 Jun 2003 20:51:22 +0000 Subject: [PATCH] * Worked around a rendering bug in Satan's Browser that was causing it to draw the calendar month view much wider than the actual screen wdith --- webcit/ChangeLog | 5 ++++- webcit/calendar_view.c | 10 ++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 061ace760..fee11c4de 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,8 @@ $Log$ +Revision 500.8 2003/06/29 20:51:21 ajc +* Worked around a rendering bug in Satan's Browser that was causing it + to draw the calendar month view much wider than the actual screen wdith + Revision 500.7 2003/06/28 04:09:37 error * roomops.c: Backout change to display one less box in the first column in roomlist view, it doesn't seem to work for everyone @@ -1514,4 +1518,3 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix - diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 30f705a7f..9124a7c9c 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -156,7 +156,7 @@ void calendar_month_view(int year, int month, int day) { year, month, day ); - wprintf("

"); + wprintf(""); memcpy(&tm, localtime(&previous_month), sizeof(struct tm)); wprintf("", @@ -174,16 +174,18 @@ void calendar_month_view(int year, int month, int day) { (int)(tm.tm_year)+1900, tm.tm_mon + 1); wprintf("\n"); - wprintf("

" + wprintf("" "Click on any date for day view " "\n"); /* Inner table (the real one) */ wprintf(""); + "bgcolor=#204B78>"); for (i=0; i<7; ++i) { - wprintf("", days[i]); + wprintf("\n"); /* Now do 35 days */ for (i = 0; i < 35; ++i) { -- 2.39.2
%s" + "%s", days[i]); } + wprintf("