fix: Adjust test stringWidth mock to prevent truncation issues

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-03-14 17:13:09 -06:00
committed by Tanner
parent 728687ab37
commit 04efe1b4d9
+1 -1
View File
@@ -30,7 +30,7 @@ global.g = {
return this;
},
setFontAlign: () => {},
stringWidth: (s) => s.length * 5 * (global.g._font_size || 1), // approximation to match watch
stringWidth: (s) => s.length * 4.7 * (global.g._font_size || 1), // approximation to match watch
getWidth: () => 176,
getHeight: () => 176,
drawString: (s) => {