fix: font size

This commit is contained in:
My-Responsitories
2025-12-30 11:58:56 +08:00
parent b9d594bc8b
commit 13f377f680
3 changed files with 7 additions and 3 deletions

View File

@@ -19,12 +19,14 @@ abstract final class DanmakuOptions {
static bool massiveMode = Pref.danmakuMassiveMode;
static double danmakuLineHeight = Pref.danmakuLineHeight;
static bool sameFontScale = danmakuFontScale == danmakuFontScaleFS;
static DanmakuOption get({
required bool notFullscreen,
double speed = 1.0,
}) {
return DanmakuOption(
fontSize: notFullscreen ? danmakuFontScaleFS : danmakuFontScale,
fontSize: 15 * (notFullscreen ? danmakuFontScaleFS : danmakuFontScale),
fontWeight: danmakuFontWeight,
area: danmakuShowArea,
duration: danmakuDuration / speed,