Skip to content

Commit bbb4121

Browse files
committed
fix: adjust line scaling logic
1 parent 3c3e5e8 commit bbb4121

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎src/lib/player/objects/Line.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ export class Line {
114114
this._data.integrateSpeedEasings ?? this._scene.chart.META.RPEVersion >= 170;
115115
this._line.setScale(
116116
this._scene.p(1) * (this._scaleX ?? 1),
117-
(this._hasCustomTexture
118-
? this._scene.p(1)
119-
: this._scene.o(1.35) * this._scene.preferences.lineThickness) * (this._scaleY ?? 1),
117+
this._hasCustomTexture
118+
? this._scene.p(1) * (this._scaleY ?? 1)
119+
: this._scene.o(1) * this._scene.preferences.lineThickness * (this._scaleY ?? 1.35),
120120
); // previously 1.0125 (according to the official definition that a line is 3 times as wide as the screen)
121121
this._line.setDepth(lineData.zIndex !== undefined ? lineData.zIndex : 2 + precedence);
122122
this._line.setVisible(!this._hasAttach || !!lineData.appearanceOnAttach || this._hasText);
@@ -232,9 +232,9 @@ export class Line {
232232
updateParams() {
233233
this._line.setScale(
234234
this._scene.p(1) * (this._scaleX ?? 1),
235-
(this._hasCustomTexture
236-
? this._scene.p(1)
237-
: this._scene.o(1.35) * this._scene.preferences.lineThickness) * (this._scaleY ?? 1),
235+
this._hasCustomTexture
236+
? this._scene.p(1) * (this._scaleY ?? 1)
237+
: this._scene.o(1) * this._scene.preferences.lineThickness * (this._scaleY ?? 1.35),
238238
);
239239
if (this._hasText) (this._line as GameObjects.Text).setText(this._text ?? '');
240240
if (this._hasAnimatedTexture) {

0 commit comments

Comments
 (0)