--- tvision/classes/tdesktop.cc.old 2016-09-23 01:23:43.486475171 -0400 +++ tvision/classes/tdesktop.cc 2016-09-23 01:48:24.317057424 -0400 @@ -144,7 +144,7 @@ { unsigned res1 = 2; unsigned res2 = i/res1; - while( abs( res1 - res2 ) > 1 ) + while(( res1 - res2 ) > 1 ) { res1 = (res1 + res2)/2; res2 = i/res1; --- tvision/classes/tdisplay.cc.old 2016-09-23 01:21:06.442641396 -0400 +++ tvision/classes/tdisplay.cc 2016-09-23 01:53:47.451387431 -0400 @@ -381,10 +381,10 @@ if (firstXMatch!=-1) {// Return the closest y that match x i=indexMin=firstXMatch; - minDif=abs(res[i].y-y); + minDif=res[i].y-y; while (++i