From 29a0fffd5bb5507602416745108dfe1f903ec04c Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 18 Dec 2017 11:24:46 +0000 Subject: [PATCH] Menu tweak git-svn-id: https://svn.eduke32.com/eduke32@6568 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/screens.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/source/duke3d/src/screens.cpp b/source/duke3d/src/screens.cpp index 538616893..00b6bc058 100644 --- a/source/duke3d/src/screens.cpp +++ b/source/duke3d/src/screens.cpp @@ -1157,13 +1157,28 @@ void G_DisplayRest(int32_t smoothratio) vec2_t crosshairpos = { 160<<16, 100<<16 }; + uint8_t crosshair_pal = CROSSHAIR_PAL; + uint32_t crosshair_o = 1|2; + + auto const oyxaspect = yxaspect; + + if (KXDWN) + { + crosshair_pal = 0; + crosshair_o |= 1024; + setaspect(viewingrange, 65536); + } + rotatesprite_win(crosshairpos.x-(g_player[myconnectindex].ps->look_ang<<15), crosshairpos.y, divscale16(ud.crosshairscale, 100), - 0, a, 0, CROSSHAIR_PAL, 2+1); + 0, a, 0, crosshair_pal, crosshair_o); #ifdef GEKKO if ((g_player[myconnectindex].ps->gm&MODE_MENU) == 0 && readmouseabsxy(&crosshairpos, &mouseabs)) - rotatesprite_win(crosshairpos.x, crosshairpos.y, divscale16(ud.crosshairscale, 100), 0, a, 0, CROSSHAIR_PAL, 2+1); + rotatesprite_win(crosshairpos.x, crosshairpos.y, divscale16(ud.crosshairscale, 100), 0, a, 0, crosshair_pal, crosshair_o); #endif + + if (KXDWN) + setaspect(viewingrange, oyxaspect); } } #if 0