]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/image.c
Menu: avoid loading font twice on resolution switch; avoid extra r_restart on resolut...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / image.c
index 40709cd3514e2a610fb81ab8c54646c1004667dc..9f0de67b8a1deb592ddf0aff2eb8c6f5b03097d0 100644 (file)
@@ -13,16 +13,9 @@ entity makeXonoticImage(string theImage, float theAspect)
        me.configureXonoticImage(me, theImage, theAspect);
        return me;
 }
-void configureXonoticImageXonoticImage(entity me, string theImage, float theAspect)
+void XonoticImage_configureXonoticImage(entity me, string theImage, float theAspect)
 {
        me.configureImage(me, theImage);
-       if(theAspect < 0) // use image aspect
-       {
-               vector sz;
-               sz = draw_PictureSize(theImage);
-               me.forcedAspect = sz_x / sz_y;
-       }
-       else
-               me.forcedAspect = theAspect;
+       me.forcedAspect = theAspect;
 }
 #endif