fix: Adjust test stringWidth mock for display precision

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