comparison libvo/sub.c @ 24595:85f669a84e7a

cosmetics: misc typo fixes
author diego
date Tue, 25 Sep 2007 16:34:23 +0000
parents 6d5999a6b4e2
children 9ebd00825df2
comparison
equal deleted inserted replaced
24594:6b9c9c305324 24595:85f669a84e7a
788 } 788 }
789 } 789 }
790 790
791 791
792 #ifdef NEW_SPLITTING 792 #ifdef NEW_SPLITTING
793 // minimum holds the 'sum of the differences in lenght among the lines', 793 // minimum holds the 'sum of the differences in length among the lines',
794 // a measure of the eveness of the lenghts of the lines 794 // a measure of the evenness of the lengths of the lines
795 for (tmp_otp = otp; tmp_otp->next != NULL; tmp_otp = tmp_otp->next) { 795 for (tmp_otp = otp; tmp_otp->next != NULL; tmp_otp = tmp_otp->next) {
796 pmt = tmp_otp->next; 796 pmt = tmp_otp->next;
797 while (pmt != NULL) { 797 while (pmt != NULL) {
798 minimum += abs(tmp_otp->value - pmt->value); 798 minimum += abs(tmp_otp->value - pmt->value);
799 pmt = pmt->next; 799 pmt = pmt->next;
804 int mem1, mem2; 804 int mem1, mem2;
805 struct osd_text_p *mem, *hold; 805 struct osd_text_p *mem, *hold;
806 806
807 exit = 0; 807 exit = 0;
808 // until the last word of a line can be moved to the beginning of following line 808 // until the last word of a line can be moved to the beginning of following line
809 // reducing the 'sum of the differences in lenght among the lines', it is done 809 // reducing the 'sum of the differences in length among the lines', it is done
810 while (exit == 0) { 810 while (exit == 0) {
811 hold = NULL; 811 hold = NULL;
812 exit = 1; 812 exit = 1;
813 for (tmp_otp = otp; tmp_otp->next != NULL; tmp_otp = tmp_otp->next) { 813 for (tmp_otp = otp; tmp_otp->next != NULL; tmp_otp = tmp_otp->next) {
814 pmt = tmp_otp->next; 814 pmt = tmp_otp->next;