~ubuntu-branches/ubuntu/vivid/xmountains/vivid

« back to all changes in this revision

Viewing changes to artist.c

  • Committer: Bazaar Package Importer
  • Author(s): tony mancill
  • Date: 2002-02-21 21:18:02 UTC
  • Revision ID: james.westby@ubuntu.com-20020221211802-dpj8w3fmsg3woiq2
Tags: 2.6-4
* a tweak in X_graphics.c for "-w -r 0" by Mark Thomas
* cosmetic manpage change

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
extern Parm fold_param;
20
20
extern Graph g;
21
21
 
 
22
extern int swosh;
 
23
 
22
24
Fold *top;
23
25
 
24
26
 
266
268
  if( g.repeat >= 0 ){
267
269
    g.pos=0;
268
270
  }else{
269
 
    g.pos=g.graph_width-1;
 
271
    g.pos = g.pixmap_width - 1;
270
272
  }     
271
273
}
272
274
/* }}} */
837
839
      flush_region(0,0,g->graph_width,g->graph_height);
838
840
    }
839
841
  }
840
 
  if( g->scroll ){
 
842
  if( g->scroll && !swosh ){
841
843
    scroll_screen(g->scroll);
842
844
  }
843
845
 
876
878
  /* now update pos ready for next time */
877
879
  if( g->repeat >=0 ){
878
880
    g->pos++;
879
 
    if(g->pos >= g->graph_width)
 
881
    if(g->pos >= g->pixmap_width)
880
882
    {
881
883
      g->pos -=  g->repeat;
882
 
      if( g->pos < 0 || g->pos > g->graph_width-1 )
 
884
      if( g->pos < 0 || g->pos > g->pixmap_width-1 )
883
885
      {
884
886
        g->pos=0; 
885
887
      }else{
890
892
    g->pos--;
891
893
    if( g->pos < 0 ){
892
894
      g->pos -=   g->repeat;
893
 
      if( g->pos < 0 || g->pos > (g->graph_width-1) ){
894
 
        g->pos=g->graph_width-1;
 
895
      if( g->pos < 0 || g->pos > (g->pixmap_width-1) ){
 
896
        g->pos=g->pixmap_width-1;
895
897
      }else{
896
898
        g->scroll = g->repeat;
897
899
      }
898
900
    }
899
901
  }
900
902
 
 
903
  if(g->scroll && swosh)
 
904
  {
 
905
    scroll_screen(g->scroll);
 
906
  }
901
907
}
902
908
/* }}} */
903
909