fix bug in wrong parameter sent to 'genClickPoints' function (code was previously sending 0, when it was meant to be passing the 'wStart' variable)

This commit is contained in:
2024-08-03 02:48:00 +01:00
parent 57c21448e7
commit d946addb81
2 changed files with 1 additions and 3 deletions

BIN
dotscape

Binary file not shown.

View File

@@ -235,11 +235,9 @@ struct
val halfWidth = Real32.fromInt (windowWidth div 2)
val start = offset - (windowWidth div 2)
val _ = print ("start = " ^ Int.toString start ^ "\n")
val start = Real32.fromInt start / halfWidth
val finish = (windowWidth - offset) - (windowWidth div 2)
val _ = print ("finish = " ^ Int.toString finish ^ "\n")
val finish = Real32.fromInt finish / halfWidth
val lines = helpGenGraphLinesHorizontal (start, finish, [])
@@ -288,7 +286,7 @@ struct
val wStart = difference div 2
val wFinish = wStart + windowHeight
in
make (windowWidth, windowHeight, 0, wFinish, 0, windowHeight)
make (windowWidth, windowHeight, wStart, wFinish, 0, windowHeight)
end
else
let