Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit c708b96

Browse files
authored
1.4.1
1 parent 9848dc9 commit c708b96

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

Core/CommonCanvas.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public CommonCanvas(in RenderOptions options) : base(options)
3535
whiteKeyShade = options.WhiteKeyShade;
3636
brighterNotesOnHit = options.BrighterNotesOnHit;
3737

38-
borderWidth = Global.EnableNoteBorder ? (int)Math.Round(0.0006 * Global.NoteBorderWidth * width) : 0;
38+
borderWidth = Global.EnableNoteBorder ? (int)Math.Round(0.0008 * Global.NoteBorderWidth * width) : 0;
3939
borderHeight = (int)Math.Round((double)borderWidth / width * height);
4040

4141
if (Global.EnableNoteBorder)
@@ -46,9 +46,9 @@ public CommonCanvas(in RenderOptions options) : base(options)
4646
for (int i = 0; i != BorderColors.Length; ++i)
4747
{
4848
ref RGBAColor col = ref BorderColors[i];
49-
col.R += (byte)Math.Round((background.R - col.R) * ratio);
50-
col.G += (byte)Math.Round((background.G - col.G) * ratio);
51-
col.B += (byte)Math.Round((background.B - col.B) * ratio);
49+
col.R = (byte)Math.Round(col.R / Global.NoteBorderShade);
50+
col.G = (byte)Math.Round(col.G / Global.NoteBorderShade);
51+
col.B = (byte)Math.Round(col.B / Global.NoteBorderShade);
5252
}
5353
}
5454
if (Global.EnableDenseNoteEffect)
@@ -560,6 +560,7 @@ private void DrawGradientBorderedNote(short key, int colorIndex, int y, int heig
560560
//}
561561
}
562562
}
563+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
563564
public void DrawGradientNote(short key, int colorIndex, int y, int height, bool pressed)
564565
{
565566
if (height < 1)

Core/Global.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ public static unsafe uint ParseVLInt(ref byte* p)
110110
return result;
111111
}
112112

113+
/// <summary>
114+
/// 表示预览时渲染FPS是否被控制不高于目标FPS.<br/>
115+
/// Determines whether render FPS cannot be greater than target FPS.
116+
/// </summary>
113117
public static bool LimitPreviewFPS = true;
114118
public static bool PreviewPaused = false;
115119

0 commit comments

Comments
 (0)