diff --git a/libs/video/renderer/gl/gl_draw.c b/libs/video/renderer/gl/gl_draw.c index 208f4d39f..1aec22137 100644 --- a/libs/video/renderer/gl/gl_draw.c +++ b/libs/video/renderer/gl/gl_draw.c @@ -584,8 +584,8 @@ Draw_Crosshair (void) if ((unsigned) ch >= sizeof (crosshair_func) / sizeof (crosshair_func[0])) return; - x = scr_vrect.x + scr_vrect.width / 2 + cl_crossx->int_val; - y = scr_vrect.y + scr_vrect.height / 2 + cl_crossy->int_val; + x = vid.conwidth / 2 + cl_crossx->int_val; + y = vid.conheight / 2 + cl_crossy->int_val; crosshair_func[ch] (x, y); } diff --git a/libs/video/renderer/sw/draw.c b/libs/video/renderer/sw/draw.c index bbf8b2f2b..26ce2e545 100644 --- a/libs/video/renderer/sw/draw.c +++ b/libs/video/renderer/sw/draw.c @@ -337,8 +337,8 @@ Draw_Crosshair (void) if ((unsigned) ch >= sizeof (crosshair_func) / sizeof (crosshair_func[0])) return; - x = scr_vrect.x + scr_vrect.width / 2 + cl_crossx->int_val; - y = scr_vrect.y + scr_vrect.height / 2 + cl_crossy->int_val; + x = vid.conwidth / 2 + cl_crossx->int_val; + y = vid.conheight / 2 + cl_crossy->int_val; crosshair_func[ch] (x, y); } diff --git a/libs/video/renderer/sw32/draw.c b/libs/video/renderer/sw32/draw.c index 9163ca4b0..36acdf94f 100644 --- a/libs/video/renderer/sw32/draw.c +++ b/libs/video/renderer/sw32/draw.c @@ -411,8 +411,8 @@ Draw_Crosshair (void) if ((unsigned) ch >= sizeof (crosshair_func) / sizeof (crosshair_func[0])) return; - x = scr_vrect.x + scr_vrect.width / 2 + cl_crossx->int_val; - y = scr_vrect.y + scr_vrect.height / 2 + cl_crossy->int_val; + x = vid.conwidth / 2 + cl_crossx->int_val; + y = vid.conheight / 2 + cl_crossy->int_val; crosshair_func[ch] (x, y); }