From a06940390846f18237035ec5f0b4b569360acfd5 Mon Sep 17 00:00:00 2001 From: nmlgc Date: Sat, 23 Dec 2023 18:15:13 +0100 Subject: [PATCH] [Effects] Music title: Allow titles to span the entire playfield Right now, long titles will cause the animation to cut off, but this is much better than restricting their width. Let's open #55 and fix the animation bug some other time. Part of P0273, funded by Ember2528. --- GIAN07/EFFECT.CPP | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GIAN07/EFFECT.CPP b/GIAN07/EFFECT.CPP index f7f1a402..ae051179 100644 --- a/GIAN07/EFFECT.CPP +++ b/GIAN07/EFFECT.CPP @@ -242,7 +242,7 @@ void SetMusicTitle(int y, Narrow::string_view s) const auto extent = DrawGrdFont(MTitleRect, s); // 曲のタイトルが長すぎる場合、どうしましょう? // - auto x = (640 - 128 - 32 - min(extent.w, 216)); + auto x = (std::max)((640 - 128 - 32 - extent.w), 128); SEffect[n].cmd = SEFC_MTITLE1; SEffect[n].x = (x<<6);// + (64*2)*16;