Skip to content

Commit 4ddcc53

Browse files
committed
Reset UCanvas::DrawColor when drawing crosshair
1 parent 6dac108 commit 4ddcc53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/UltiCross/Private/UltiCrosshair.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ void UUltiCrosshair::DrawCrosshair_Implementation(AUTHUD* TargetHUD, UCanvas* Ca
4848
float X = (Canvas->SizeX * 0.5f) - FMath::CeilToFloat(Width * 0.5f);
4949
float Y = (Canvas->SizeY * 0.5f) - FMath::CeilToFloat(Height * 0.5f);
5050

51+
Canvas->DrawColor = FLinearColor(1.0f, 1.0f, 1.0f, 1.0f).ToFColor(false);
5152
Canvas->DrawTile(Texture, X, Y, Width, Height, 0.0f, 0.0f, Width, Height);
5253
}

0 commit comments

Comments
 (0)