Skip to content

Commit

Permalink
Fixed dimension rotation fencepost error
Browse files Browse the repository at this point in the history
  • Loading branch information
enkiv2 committed Jul 13, 2011
1 parent f5c8b1a commit 9e8415e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/zz.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,19 +182,19 @@ const void nav_cells(int pid) { //@ handle navigation, display, and editing
break;
case 'X':
dimx--;
if(dimx<0) dimx=max_dims;
if(dimx<0) dimx=max_dims-1;
break;
case 'Y':
dimy--;
if(dimy<0) dimy=max_dims;
if(dimy<0) dimy=max_dims-1;
break;
case 'x':
dimx++;
if(dimx>max_dims) dimx=0;
if(dimx>=max_dims) dimx=0;
break;
case 'y':
dimy++;
if(dimy>max_dims) dimy=0;
if(dimy>=max_dims) dimy=0;
break;
case 'z': // swap apparent x/y
i=dimy;
Expand Down

0 comments on commit 9e8415e

Please sign in to comment.