mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Menu tweak
git-svn-id: https://svn.eduke32.com/eduke32@6568 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ca308d5879
commit
29a0fffd5b
1 changed files with 17 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue