From 0233204a5878bccbf37ebe4d2a1215e40b800864 Mon Sep 17 00:00:00 2001 From: LouisTakePILLz Date: Tue, 15 Jan 2019 18:24:48 -0500 Subject: [PATCH] Fix cross xhair off-by-1 coordinates --- shaders/xhair.fx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/xhair.fx b/shaders/xhair.fx index d8f03c7..b6a7fbc 100644 --- a/shaders/xhair.fx +++ b/shaders/xhair.fx @@ -488,7 +488,7 @@ float4 PS_Xhair(float4 pos : SV_Position, float2 texcoord : TEXCOORD) : SV_Targe return drawBackground; } - float2 center = float2((BUFFER_WIDTH / 2) - 1 + OffsetX, (BUFFER_HEIGHT / 2) - 1 + OffsetY); + float2 center = float2((BUFFER_WIDTH / 2) + OffsetX, (BUFFER_HEIGHT / 2) + OffsetY); int distX = abs(center.x - pos.x); int distY = abs(center.y - pos.y);