ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rclock.C
(Generate patch)

Comparing rxvt-unicode/src/rclock.C (file contents):
Revision 1.7 by root, Sat Jul 17 00:14:54 2021 UTC vs.
Revision 1.9 by root, Sun Nov 14 17:26:28 2021 UTC

184static int32_t 184static int32_t
185Sin (int32_t arg) 185Sin (int32_t arg)
186{ 186{
187 int32_t x = (arg - 360) * 16384 / 360; 187 int32_t x = (arg - 360) * 16384 / 360;
188 188
189 int c, x2, y; 189 int c, y;
190 static const int qN = 13, qA = 12, B = 19900, C = 3516; 190 static const int qN = 13, qA = 12, B = 19900, C = 3516;
191 191
192 c = x << (30 - qN); // Semi-circle info into carry. 192 c = x << (30 - qN); // Semi-circle info into carry.
193 x -= 1 << qN; // sine -> cosine calc 193 x -= 1 << qN; // sine -> cosine calc
194 194
940 Xgc, 940 Xgc,
941 (Msg.width - 941 (Msg.width -
942 XTextWidth (Xfont, beg, (end - beg))) / 2, 10 + Xfont->ascent + FontHeight () * lines, beg, (end - beg)); 942 XTextWidth (Xfont, beg, (end - beg))) / 2, 10 + Xfont->ascent + FontHeight () * lines, beg, (end - beg));
943 } 943 }
944 944
945 XDrawString (Xdisplay, msgButton.Dismiss, Xrvgc, (msgButton.width - XTextWidth (Xfont, "Done", 4)) / 2, Xfont->ascent + 2, "Done", 4); 945 XDrawString (Xdisplay, msgButton.Dismiss, Xrvgc, (msgButton.width - XTextWidth (Xfont, "Done" , 4)) / 2, Xfont->ascent + 2, "Done", 4);
946 946
947 XDrawString (Xdisplay, msgButton.Defer, Xrvgc, (msgButton.width - XTextWidth (Xfont, "Defer", 5)) / 2, Xfont->ascent + 2, "Defer", 5); 947 XDrawString (Xdisplay, msgButton.Defer , Xrvgc, (msgButton.width - XTextWidth (Xfont, "Defer", 5)) / 2, Xfont->ascent + 2, "Defer", 5);
948 948
949# ifndef NO_REMINDER_EXEC 949# ifndef NO_REMINDER_EXEC
950 XDrawString (Xdisplay, msgButton.Start, Xrvgc, (msgButton.width - XTextWidth (Xfont, "Start", 5)) / 2, Xfont->ascent + 2, "Start", 5); 950 XDrawString (Xdisplay, msgButton.Start , Xrvgc, (msgButton.width - XTextWidth (Xfont, "Start", 5)) / 2, Xfont->ascent + 2, "Start", 5);
951 951
952 if (strlen (execPrgm) > 1) 952 if (strlen (execPrgm) > 1)
953 XMapWindow (Xdisplay, msgButton.Start); 953 XMapWindow (Xdisplay, msgButton.Start);
954 else 954 else
955 XUnmapWindow (Xdisplay, msgButton.Start); 955 XUnmapWindow (Xdisplay, msgButton.Start);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines