Skip to content

Commit

Permalink
CROSSHAIRS: Fix bug where crosshair not centred when viewsize reduced
Browse files Browse the repository at this point in the history
  • Loading branch information
meag committed Jul 14, 2017
1 parent 1a3b0d7 commit 94fb886
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cl_multiview.c
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,9 @@ qbool CL_MultiviewGetCrosshairCoordinates(qbool use_screen_coords, float* cross_
min_y = gly;
width = glwidth;
height = glheight;

min_y += scr_vrect.y * ((float)glheight / vid.height);
height -= (vid.height - scr_vrect.height) * ((float)glheight / vid.height);
}

x = min_x + 0.5 * width;
Expand Down

0 comments on commit 94fb886

Please sign in to comment.