Changeset 495

Show
Ignore:
Timestamp:
04/27/08 15:21:52 (4 months ago)
Author:
Mike Wey
Message:

Fix time in cairo_clock demo for tango

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk

    • Property svn:ignore set to
      .hg
      .hgignore
  • trunk/demos/cairo/cairo_clock/clock.d

    r480 r495  
    139139        version(Tango) 
    140140        { 
    141             auto date = tangoClock.WallClock.toDate.time.span
    142          
    143             double minutes = date.minutes * PI / 30; 
    144             double hours = date.hours * PI / 6; 
    145             double seconds = date.seconds * PI / 30; 
     141            auto time = tangoClock.WallClock.now.time
     142         
     143            double minutes = time.minutes * PI / 30; 
     144            double hours = time.hours * PI / 6; 
     145            double seconds = time.seconds * PI / 30; 
    146146        } 
    147147        else