seems to work

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@276 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-11 15:55:42 +00:00
parent 8532ac96ec
commit 1574d9af33
2 changed files with 27 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ static int calc_length(MwWidget handle) {
int max = MwScrollBarGetVisibleLength(handle);
int len = MwGetInteger(handle, MwNmaxValue) - MwGetInteger(handle, MwNminValue);
int area = MwGetInteger(handle, MwNareaShown);
if(area > MwGetInteger(handle, MwNmaxValue)) area = MwGetInteger(handle, MwNmaxValue);
if(area > len) area = len;
return max * (double)area / len;
}