From bf18e143c790bade1f2886ff3e07130c0eb68afd Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Thu, 11 Sep 2025 02:02:41 +0100 Subject: [PATCH] refactor text builder to use z-index for creating text vector --- fcore/text-builder.sml | 3 ++- shf.mlb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fcore/text-builder.sml b/fcore/text-builder.sml index 9d4be70..0686475 100644 --- a/fcore/text-builder.sml +++ b/fcore/text-builder.sml @@ -41,7 +41,7 @@ struct val textAcc = Vector.concat textAcc val bgAcc = Vector.concat bgAcc val vec = Vector.concat [textAcc, bgAcc, cursorAcc] - val drawMsg = DRAW_TEXT cursorAcc + val drawMsg = DRAW_TEXT vec in DRAW drawMsg :: msgs end @@ -79,6 +79,7 @@ struct ( chr , Real32.fromInt posX , Real32.fromInt posY + , 0.05 , scale , windowWidth , windowHeight diff --git a/shf.mlb b/shf.mlb index e9b1a5d..8932029 100644 --- a/shf.mlb +++ b/shf.mlb @@ -3,7 +3,7 @@ $(SML_LIB)/basis/basis.mlb (* LIBRARIES *) lib/brolib-sml/src/line_gap.sml lib/brolib-sml/src/gap_set.sml -lib/cozette-sml/fonts/cozette-ascii.mlb +lib/cozette-sml/fonts-with-z-index/cozette-ascii.mlb (* FUNCTIONAL CORE *) message-types/input-msg.sml