From f3a0eb3e30b6854e844301880190bd265379d956 Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Fri, 30 Aug 2024 05:20:56 +0100 Subject: [PATCH] minor change to generated export code (avoid redundant maths operations) --- imperative-shell/file-thread.sml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imperative-shell/file-thread.sml b/imperative-shell/file-thread.sml index b26a2c6..f62ac89 100644 --- a/imperative-shell/file-thread.sml +++ b/imperative-shell/file-thread.sml @@ -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\