]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/crosshairbutton.c
more crosshair bugfixes; show the 6 new ones
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / crosshairbutton.c
index c3921c3a41cf22d2fbd4c63b17faf86fea52dd3b..9456cd66da2d2f22fdb48dd0db6d9560e1ccc086 100644 (file)
@@ -110,7 +110,11 @@ void XonoticCrosshairButton_draw(entity me)
                */
        }
        else // show the crosshair picker at full size
-               sz = '0.95 0.95 0';
+       {
+               sz = sz * (0.95 / sz_x);
+               if(sz_y > 0.95)
+                       sz = sz * (0.95 / sz_y);
+       }
 
        draw_Picture('0.5 0.5 0' - 0.5 * sz, me.src3, sz, rgb, a);
        if(cvar("crosshair_dot"))