mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-09 10:53:27 +00:00
seems to work
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@276 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user