minor change to generated export code (avoid redundant maths operations)

This commit is contained in:
2024-08-30 05:20:56 +01:00
parent db92b95c41
commit f3a0eb3e30

View File

@@ -68,9 +68,9 @@ struct
\ let\n\
\ val startX = Real32.fromInt startX\n\
\ val startY = Real32.fromInt startY\n\
\ val startY = windowHeight - (startY + drawHeight)\n\
\ val endY = windowHeight - startY\n\
\ val endX = startX + drawWidth\n\
\ val endY = startY + drawHeight\n\
\ val startY = startY - drawHeight\n\
\ val windowHeight = windowHeight / 2.0\n\
\ val windowWidth = windowWidth / 2.0\n\
\ in\n\