]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/menu/draw.qc
Include gmqcc binaries for Windows and Linux
[voretournament/voretournament.git] / data / qcsrc / menu / draw.qc
index 7ab53e2e9c2e0b3cd3e03456b6ee61087f96fede..ca6f0a29989764f614bcf37278305322eea7380f 100644 (file)
@@ -2,14 +2,6 @@ string draw_mousepointer;
 vector draw_mousepointer_offset;\r
 vector draw_mousepointer_size;\r
 \r
-string draw_UseSkinFor(string pic)\r
-{\r
-       if(substring(pic, 0, 1) == "/")\r
-               return substring(pic, 1, strlen(pic)-1);\r
-       else\r
-               return strcat(draw_currentSkin, "/", pic);\r
-}\r
-\r
 void draw_setMousePointer(string pic, vector theSize, vector theOffset)\r
 {\r
        draw_mousepointer = strzone(draw_UseSkinFor(pic));\r
@@ -61,10 +53,10 @@ vector boxToGlobalSize(vector v, vector theScale)
        return v;\r
 }\r
 \r
-void draw_PreloadPicture(string pic)\r
+string draw_PreloadPicture(string pic)\r
 {\r
        pic = draw_UseSkinFor(pic);\r
-       precache_pic(pic);\r
+       return precache_pic(pic);\r
 }\r
 \r
 void draw_Picture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha)\r