Fossil

Check-in [550f245a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix off-by-one with top-of-page descending rails
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | differentiate-timeline
Files: files | file ages | folders
SHA1: 550f245af4317e5f135db2b653fae9c6bcc1e2f5
User & Date: jmoger 2015-03-19 19:12:41
Context
2015-03-19
23:57
Expose timeline circles, arrowheads, and branch rail colors as settings check-in: fb9b3707 user: jmoger tags: differentiate-timeline
19:12
Fix off-by-one with top-of-page descending rails check-in: 550f245a user: jmoger tags: differentiate-timeline
17:53
Display all check-in nodes as circles, color branch rails, use Xekri to demonstrate trunk rail controls check-in: 529c07af user: jmoger tags: differentiate-timeline
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/timeline.c.

798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
    @   drawNodeBox(p.bg||bgClr,p.x-4,p.y-4,p.x+5,p.y+5);
    @   /* Leaf indicator for CheckIn node */
    @   if( p.f&1 ) drawNodeBox(leafColor,p.x-1,p.y-1,p.x+2,p.y+2);
    @   /* Branch rail to CheckIn's node */
    @   if( p.u>0 ) drawRail(p.x, rowinfo[p.u-1].y+6, p.y-6, rowinfo[p.u-1].bg);
    if( !omitDescenders ){
      @   /* Branch rails from bottom or to top of page */
      @   if( p.u==0 ) drawRail(p.x, 0, p.y-5,p.bg);
      @   if( p.d ) drawRail(p.x, p.y+6, btm,p.bg);
    }
    @   /* MergeOut horizontal rail */
    @   if( p.mo>0 ){
    @     var x1 = p.mo + left - 1;
    @     var y1 = p.y-3;
    @     var x0 = x1>p.x ? p.x+6 : p.x-6;







|







798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
    @   drawNodeBox(p.bg||bgClr,p.x-4,p.y-4,p.x+5,p.y+5);
    @   /* Leaf indicator for CheckIn node */
    @   if( p.f&1 ) drawNodeBox(leafColor,p.x-1,p.y-1,p.x+2,p.y+2);
    @   /* Branch rail to CheckIn's node */
    @   if( p.u>0 ) drawRail(p.x, rowinfo[p.u-1].y+6, p.y-6, rowinfo[p.u-1].bg);
    if( !omitDescenders ){
      @   /* Branch rails from bottom or to top of page */
      @   if( p.u==0 ) drawRail(p.x, 0, p.y-6,p.bg);
      @   if( p.d ) drawRail(p.x, p.y+6, btm,p.bg);
    }
    @   /* MergeOut horizontal rail */
    @   if( p.mo>0 ){
    @     var x1 = p.mo + left - 1;
    @     var y1 = p.y-3;
    @     var x0 = x1>p.x ? p.x+6 : p.x-6;