Skip to content

Commit

Permalink
changed CrossHairDrawPosition, Ten floats lower
Browse files Browse the repository at this point in the history
  • Loading branch information
Siwwyy committed Oct 18, 2020
1 parent 0d901f9 commit 15d395d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ void AInfinite_ShooterHUD::DrawHUD()
const FVector2D Center(Canvas->ClipX * 0.5f, Canvas->ClipY * 0.5f);

// offset by half the texture's dimensions so that the center of the texture aligns with the center of the Canvas
const FVector2D CrosshairDrawPosition( (Center.X),
(Center.Y));
const FVector2D CrosshairDrawPosition((Center.X),
(Center.Y + 10.f));

// draw the crosshair
FCanvasTileItem TileItem( CrosshairDrawPosition, CrosshairTex->Resource, FLinearColor::White);
FCanvasTileItem TileItem(CrosshairDrawPosition, CrosshairTex->Resource, FLinearColor::White);
TileItem.BlendMode = SE_BLEND_Translucent;
Canvas->DrawItem( TileItem );
Canvas->DrawItem(TileItem);
}

0 comments on commit 15d395d

Please sign in to comment.