ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/root-tail/root-tail.c
(Generate patch)

Comparing root-tail/root-tail.c (file contents):
Revision 1.14 by pcg, Sat Mar 27 14:47:27 2004 UTC vs.
Revision 1.15 by pcg, Sat Mar 27 15:35:44 2004 UTC

353 XmbDrawString (disp, root, fontset, WinGC, win_x, win_y + offset, 353 XmbDrawString (disp, root, fontset, WinGC, win_x, win_y + offset,
354 line->line, line->len); 354 line->line, line->len);
355 } 355 }
356 356
357 if (opt_frame) 357 if (opt_frame)
358 {
359 XSetForeground (disp, WinGC, GetColor (def_color));
358 XDrawRectangle (disp, root, WinGC, win_x - 2, win_y - 2, width + 4, height + 4); 360 XDrawRectangle (disp, root, WinGC, win_x - 2, win_y - 2, width + 4, height + 4);
361 }
359} 362}
360 363
361#if HAS_REGEX 364#if HAS_REGEX
362void 365void
363transform_line (char *s) 366transform_line (char *s)
640 unsigned long color = lines[idx].color; 643 unsigned long color = lines[idx].color;
641 char *old = lines[idx].line; 644 char *old = lines[idx].line;
642 char *new = concat_line (old, str); 645 char *new = concat_line (old, str);
643 646
644 free (old); 647 free (old);
645 free (str);
646 648
647 delete_line (idx); 649 delete_line (idx);
648 split_line (idx, new, color); 650 split_line (idx, new, color);
649} 651}
650 652
801 803
802 refresh (miny, maxy); 804 refresh (miny, maxy);
803 XDestroyRegion (region); 805 XDestroyRegion (region);
804 region = XCreateRegion (); 806 region = XCreateRegion ();
805 maxy = 0; 807 maxy = 0;
806 miny = win_y + height; 808 miny = 32768;
807 } 809 }
808 } 810 }
809} 811}
810 812
811 813

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines