Skip to content

Commit 462d791

Browse files
committed
Args for mergedist; render bug fix
1 parent 125e6ee commit 462d791

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/GUI.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static void GUI_Window_render(struct GUI_Window *win){
308308
for(float x=rect.left; x<=rect.right-skip; x+=skip){
309309

310310
// Calc Rect dimentions
311-
index=(int)((x-rect.left)/(float)(rect.right-1)*(list_size-1));
311+
index=(int)((x-rect.left)/(float)(rect.right-1)*(list_size));
312312

313313
line.left=x;
314314
line.top=rect.bottom-data[index]/(float)max*(rect.bottom-rect.top)/1.1;

src/SortList.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ int List_verify(List l)
9494
}else{
9595
GUI_Window_marks_add(0, i, (struct Color){0,255,0});
9696
}
97+
GUI_Window_marks_add(0, ++i, (struct Color){0,255,0});
9798
GUI_wait();
9899
GUI_update(0);
99100
}

src/argparse.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,10 @@ void print_usage(){
333333
printf(" - %s\n", arguments[i].describtion);
334334
}
335335

336+
#ifdef NSPIRE
337+
getchar();
338+
getchar();
339+
#endif
336340
// Print Extra
337341
printf("\nSortingalgoritms:\n");
338342

0 commit comments

Comments
 (0)