From ae94566fb55b4a001d1c893f094d02a4ad8eb346 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Thu, 26 Dec 2019 06:28:12 +0000 Subject: [PATCH] SW: Draw the crosshair actually centered Thanks to Striker for the tip. git-svn-id: https://svn.eduke32.com/eduke32@8524 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/sw/src/draw.cpp --- source/sw/src/draw.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/sw/src/draw.cpp b/source/sw/src/draw.cpp index 502953081..6bd9e3a7c 100644 --- a/source/sw/src/draw.cpp +++ b/source/sw/src/draw.cpp @@ -1633,10 +1633,9 @@ void DrawCrosshair(PLAYERp pp) { //NORMALXHAIR: - rotatesprite(CrosshairX, CrosshairY, (1 << 16), 0, + rotatesprite(160<<16, 100<<16, (1 << 16), 0, 2326, 10, 0, - //ROTATE_SPRITE_VIEW_CLIP|ROTATE_SPRITE_CORNER, 0, 0, xdim - 1, ydim - 1); - ROTATE_SPRITE_SCREEN_CLIP|ROTATE_SPRITE_CORNER, 0, 0, xdim - 1, ydim - 1); + ROTATE_SPRITE_VIEW_CLIP, windowxy1.x, windowxy1.y, windowxy2.x, windowxy2.y); } //#define TITLE_ROT_FLAGS (ROTATE_SPRITE_CORNER|ROTATE_SPRITE_SCREEN_CLIP|ROTATE_SPRITE_NON_MASK)