From 0b5180c62871a51cc299d38a73663f3f44d2b5ad Mon Sep 17 00:00:00 2001 From: aurhat Date: Sun, 3 Jul 2016 13:19:12 +0200 Subject: [PATCH] Fix centring the 512x512 scope image --- source/src/renderhud.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index f34d3fc9..16328727 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -100,8 +100,9 @@ void drawscope(bool preload) glColor3ub(255, 255, 255); // figure out the bounds of the scope given the desired aspect ratio + int scopecenterfix = 2; // center the 512x512 scope image float sz = min(VIRTW, VIRTH), - x1 = VIRTW/2 - sz/2, + x1 = VIRTW/2 - sz/2 + scopecenterfix, x2 = VIRTW/2 + sz/2, y1 = VIRTH/2 - sz/2, y2 = VIRTH/2 + sz/2,