Skip to content

Commit

Permalink
[Effects] Music title: Allow titles to span the entire playfield
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nmlgc committed Mar 8, 2024
1 parent 3de48ab commit a069403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GIAN07/EFFECT.CPP
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a069403

Please sign in to comment.