diff --git a/src/NoteDisplay.cpp b/src/NoteDisplay.cpp index 6268f38ca2..3fc428d8fa 100644 --- a/src/NoteDisplay.cpp +++ b/src/NoteDisplay.cpp @@ -756,7 +756,7 @@ void NoteDisplay::DrawHoldPart(vector &vpSpr, /* Only draw the section that's within the range specified. If a hold note is * very long, don't process or draw the part outside of the range. Don't change * part_args.y_top or part_args.y_bottom; they need to be left alone to calculate texture coordinates. */ - // If hold body, draw texture to the outside screen.(fix by A.C) + // If hold body, draw texture to the outside screen.(fix by A.C) float y_start_pos = (part_type == hpt_body) ? part_args.y_top : max(part_args.y_top, part_args.y_start_pos); if (part_args.y_top < part_args.y_start_pos - unzoomed_frame_height) { @@ -792,8 +792,8 @@ void NoteDisplay::DrawHoldPart(vector &vpSpr, { /* For very large hold notes, shift the texture coordinates to be near 0, so we * don't send very large values to the renderer. */ - const float fDistFromTop = y_start_pos - part_args.y_top; - float fTexCoordTop = SCALE(fDistFromTop, 0, unzoomed_frame_height, rect.top, rect.bottom); + const float fDistFromTop = y_start_pos - part_args.y_top; + float fTexCoordTop = SCALE(fDistFromTop, 0, unzoomed_frame_height, rect.top, rect.bottom); fTexCoordTop += add_to_tex_coord; add_to_tex_coord -= floorf(fTexCoordTop); }