Guest User

xdaliclock-2.18/X11/digital.c:1260

a guest
Feb 21st, 2012
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.90 KB | None | 0 0
  1.           if (date == 0)
  2.             {
  3.               struct tm tm;
  4.               memset(&tm, 0, sizeof(tm));
  5.               tm.tm_year = 100;
  6.               tm.tm_mday = 1;
  7.               tm.tm_isdst = -1;
  8.               date = mktime(&tm);
  9.               was = (clock >= date);
  10.             }
  11.           if (!was && clock >= date)
  12.             {
  13.               int j, k;
  14.               be_a_pig = was = -1;
  15.               memset (time_digits, -1, sizeof(time_digits));
  16.               for (i = 0; i < sizeof(base_frames)/sizeof(*base_frames); i++)
  17.                 for (j = 0; j < character_height; j++)
  18.                   for (k = 0; k < MAX_SEGS_PER_LINE; k++)
  19.                     {
  20. # define SHIFT(x) x=character_width-x
  21.                       SHIFT(base_frames[i]->scanlines[j].left[k]);
  22.                       SHIFT(base_frames[i]->scanlines[j].right[k]);
  23. # undef SHIFT
  24.                     }
  25.             }
Advertisement
Add Comment
Please, Sign In to add comment