refactor a little bit, making signature of app-update.sml simpler to use by storing mouseX and mouseY inside the app_type

This commit is contained in:
2024-08-08 21:58:50 +01:00
parent 89f4ae3b13
commit 4243e4c679
6 changed files with 109 additions and 31 deletions

View File

@@ -8,7 +8,7 @@ struct
open AppType
fun helpFromWidthAndHeight
(windowWidth, windowHeight, wStart, wFinish, hStart, hFinish) =
(windowWidth, windowHeight, wStart, wFinish, hStart, hFinish) : app_type =
let
val xClickPoints = ClickPoints.generate (wStart, wFinish)
val yClickPoints = ClickPoints.generate (hStart, hFinish)
@@ -24,6 +24,8 @@ struct
, yClickPoints = yClickPoints
, graphLines = graphLines
, undo = []
, mouseX = 0.0
, mouseY = 0.0
}
end